Skip to content

Commit

Permalink
Fix getComputedStyle fallback for IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed May 29, 2015
1 parent ba15227 commit 26fe92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@
dividerHeight = $(divider).outerHeight(true),
// fall back to jQuery if getComputedStyle is not supported
menuStyle = getComputedStyle ? getComputedStyle(menu) : false,
$menu = menuStyle ? $(menu) : null,
$menu = menuStyle ? null : $(menu),
menuPadding = parseInt(menuStyle ? menuStyle.paddingTop : $menu.css('paddingTop')) +
parseInt(menuStyle ? menuStyle.paddingBottom : $menu.css('paddingBottom')) +
parseInt(menuStyle ? menuStyle.borderTopWidth : $menu.css('borderTopWidth')) +
Expand Down

0 comments on commit 26fe92c

Please sign in to comment.