From 6807d588ee18f3e5a842fa1d4391f86f2e2f679c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 14 Sep 2011 09:41:57 -0400 Subject: [PATCH] Spinner: Work around a bug in IE 6 with the height of the buttons. --- ui/jquery.ui.spinner.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index e795b880f..4b7239850 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -148,6 +148,12 @@ $.widget( "ui.spinner", { .button() .removeClass( "ui-corner-all" ); + // 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( uiSpinner.height() ); + } + // disable spinner if element was already disabled if ( this.options.disabled ) { this.disable(); @@ -240,7 +246,7 @@ $.widget( "ui.spinner", { return 1; }, - _precision: function( num ) { + _precision: function() { var precision = this._precisionOf( this.options.step ); if ( this.options.min !== null ) { precision = Math.max( precision, this._precisionOf( this.options.min ) ); -- 2.39.5