Skip to content

Commit 6807d58

Browse files
committed
Spinner: Work around a bug in IE 6 with the height of the buttons.
1 parent 91786d5 commit 6807d58

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ui/jquery.ui.spinner.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ $.widget( "ui.spinner", {
148148
.button()
149149
.removeClass( "ui-corner-all" );
150150

151+
// IE 6 doesn't understand height: 50% for the buttons
152+
// unless the wrapper has an explicit height
153+
if ( this.buttons.height() === uiSpinner.height() ) {
154+
uiSpinner.height( uiSpinner.height() );
155+
}
156+
151157
// disable spinner if element was already disabled
152158
if ( this.options.disabled ) {
153159
this.disable();
@@ -240,7 +246,7 @@ $.widget( "ui.spinner", {
240246
return 1;
241247
},
242248

243-
_precision: function( num ) {
249+
_precision: function() {
244250
var precision = this._precisionOf( this.options.step );
245251
if ( this.options.min !== null ) {
246252
precision = Math.max( precision, this._precisionOf( this.options.min ) );

0 commit comments

Comments
 (0)