aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-09-14 09:41:57 -0400
committerScott González <scott.gonzalez@gmail.com>2011-09-14 09:41:57 -0400
commit6807d588ee18f3e5a842fa1d4391f86f2e2f679c (patch)
tree915b1b4e6520a653e00228969fb23a278a8de823 /ui
parent91786d550bd5525e6cac25f60e444d4826e8e32b (diff)
downloadjquery-ui-6807d588ee18f3e5a842fa1d4391f86f2e2f679c.tar.gz
jquery-ui-6807d588ee18f3e5a842fa1d4391f86f2e2f679c.zip
Spinner: Work around a bug in IE 6 with the height of the buttons.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.spinner.js8
1 files changed, 7 insertions, 1 deletions
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 ) );