src/main/webapp/resources/libs/sb-admin-v2/js/screening/jquery.selectric.js
// Set options box width/height
Set options box width/height
Set options box width / height
function _calculateOptionsDimensions() {
          var visibleParent = $items.closest(':visible').children(':hidden'),
              maxHeight = _this.options.maxHeight;
          visibleParent.addClass(_this.classes.tempshow);
          var itemsWidth = $items.outerWidth(),
              wrapperWidth = $wrapper.outerWidth() - (itemsWidth - $items.width());
          if ( !_this.options.expandToItemText || wrapperWidth > itemsWidth )
            finalWidth = wrapperWidth;
          else {
            $items.css('overflow', 'scroll');
            $outerWrapper.width(9e4);
            finalWidth = $items.width();
            $items.css('overflow', '');
            $outerWrapper.width('');
          }
          $items.width(finalWidth).height() > maxHeight && $items.height(maxHeight);
          visibleParent.removeClass(_this.classes.tempshow);
        }
function _calculateOptionsDimensions ( ) { var visibleParent = $items . closest ( ':visible' ) . children ( ':hidden' ) , maxHeight = _this . options . maxHeight ; visibleParent . addClass ( _this . classes . tempshow ) ; var itemsWidth = $items . outerWidth ( ) , wrapperWidth = $wrapper . outerWidth ( ) - ( itemsWidth - $items . width ( ) ) ; if ( ! _this . options . expandToItemText || wrapperWidth > itemsWidth ) finalWidth = wrapperWidth ; else { $items . css ( 'overflow' , 'scroll' ) ; $outerWrapper . width ( 9e4 ) ; finalWidth = $items . width ( ) ; $items . css ( 'overflow' , '' ) ; $outerWrapper . width ( '' ) ; } $items . width ( finalWidth ) . height ( ) > maxHeight && $items . height ( maxHeight ) ; visibleParent . removeClass ( _this . classes . tempshow ) ; }
Set options box width/height
Set options box width / height
// Calculate options box height // Set a temporary class on the hidden parent of the element // Set the dimensions, minimum is wrapper width, expand for long items if option is true // Make sure the scrollbar width is included // Set a really long width for $outerWrapper // Set scroll bar to auto // Remove the temporary class