Skip to content

Commit 4694f85

Browse files
committed
Spinner: Adjust height check for IE 6 rendering.
1 parent ae96ef7 commit 4694f85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.spinner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ $.widget( "ui.spinner", {
151151

152152
// IE 6 doesn't understand height: 50% for the buttons
153153
// unless the wrapper has an explicit height
154-
if ( this.buttons.height() === uiSpinner.height() && uiSpinner.height() > 0 ) {
154+
if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&
155+
uiSpinner.height() > 0 ) {
155156
uiSpinner.height( uiSpinner.height() );
156157
}
157158

0 commit comments

Comments
 (0)