Browse files

Spinner: Adjust height check for IE 6 rendering.

  • Loading branch information...
1 parent 912b8b2 commit 6abb3c912dd2df535bdb7548a6d24165f5bad008 @scottgonzalez scottgonzalez committed with gnarf Oct 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/jquery.ui.spinner.js
View
3 ui/jquery.ui.spinner.js
@@ -150,7 +150,8 @@ $.widget( "ui.spinner", {
// IE 6 doesn't understand height: 50% for the buttons
// unless the wrapper has an explicit height
- if ( this.buttons.height() === uiSpinner.height() && uiSpinner.height() > 0 ) {
+ if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&
+ uiSpinner.height() > 0 ) {
uiSpinner.height( uiSpinner.height() );
}

0 comments on commit 6abb3c9

Please sign in to comment.