Skip to content

Commit bf51b0e

Browse files
committed
Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not visible
1 parent 34a0479 commit bf51b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.spinner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ $.widget( "ui.spinner", {
150150

151151
// IE 6 doesn't understand height: 50% for the buttons
152152
// unless the wrapper has an explicit height
153-
if ( this.buttons.height() === uiSpinner.height() ) {
153+
if ( this.buttons.height() === uiSpinner.height() && uiSpinner.height() > 0 ) {
154154
uiSpinner.height( uiSpinner.height() );
155155
}
156156

0 commit comments

Comments
 (0)