themis/web/js/lib/aui.js
// calculate widths based on the current state of the page
calculate widths based on the current state of the page
calculate widths based on the current state of the page
function calculateAvailableWidth() {
          var rightMostBoundary = this.$secondaryNav.is(':visible') ? this.$secondaryNav.offset().left : this.$element.outerWidth();
          var primaryNavRight = this.$applicationLogo.offset().left + this.$applicationLogo.outerWidth(true) + this.primaryButtonsWidth;
          return rightMostBoundary - primaryNavRight;
      }
function calculateAvailableWidth ( ) { var rightMostBoundary = this . $secondaryNav . is ( ':visible' ) ? this . $secondaryNav . offset ( ) . left : this . $element . outerWidth ( ) ; var primaryNavRight = this . $applicationLogo . offset ( ) . left + this . $applicationLogo . outerWidth ( true ) + this . primaryButtonsWidth ; return rightMostBoundary - primaryNavRight ; }
calculate widths based on the current state of the page
calculate widths based on the current state of the page
// if there is no secondary nav, use the right of the screen as the boundary instead // the right most side of the primary nav, this is assumed to exists if this code is running