mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Spinner: Work around a bug in IE 6 with the height of the buttons.
This commit is contained in:
parent
91786d550b
commit
6807d588ee
8
ui/jquery.ui.spinner.js
vendored
8
ui/jquery.ui.spinner.js
vendored
@ -148,6 +148,12 @@ $.widget( "ui.spinner", {
|
|||||||
.button()
|
.button()
|
||||||
.removeClass( "ui-corner-all" );
|
.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
|
// disable spinner if element was already disabled
|
||||||
if ( this.options.disabled ) {
|
if ( this.options.disabled ) {
|
||||||
this.disable();
|
this.disable();
|
||||||
@ -240,7 +246,7 @@ $.widget( "ui.spinner", {
|
|||||||
return 1;
|
return 1;
|
||||||
},
|
},
|
||||||
|
|
||||||
_precision: function( num ) {
|
_precision: function() {
|
||||||
var precision = this._precisionOf( this.options.step );
|
var precision = this._precisionOf( this.options.step );
|
||||||
if ( this.options.min !== null ) {
|
if ( this.options.min !== null ) {
|
||||||
precision = Math.max( precision, this._precisionOf( this.options.min ) );
|
precision = Math.max( precision, this._precisionOf( this.options.min ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user