File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1118
1118
// Deduct height of header & border/padding to find height available for checkboxes.
1119
1119
var $header = self . $header . filter ( ':visible' ) ;
1120
1120
var headerHeight = $header . outerHeight ( true ) + self . _jqHeightFix ( $header ) ;
1121
- var borderPaddingHt = this . $menu . outerHeight ( false ) - this . $menu . height ( ) ;
1121
+ var menuBorderPaddingHt = this . $menu . outerHeight ( false ) - this . $menu . height ( ) ;
1122
+ var cbBorderPaddingHt = this . $checkboxes . outerHeight ( false ) - this . $checkboxes . height ( ) ;
1122
1123
1123
1124
optionHeight = self . _parse2px ( optionHeight , self . element , true ) . px ;
1124
- maxHeight = Math . min ( optionHeight , maxHeight ) - headerHeight - borderPaddingHt ;
1125
+ maxHeight = Math . min ( optionHeight , maxHeight ) - headerHeight - menuBorderPaddingHt - cbBorderPaddingHt ;
1125
1126
}
1126
1127
else if ( optionHeight . toLowerCase ( ) === 'size' ) {
1127
1128
// Overall height based on native select 'size' attribute
You can’t perform that action at this time.
0 commit comments