mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not visible
This commit is contained in:
parent
34a0479d1c
commit
bf51b0e71c
2
ui/jquery.ui.spinner.js
vendored
2
ui/jquery.ui.spinner.js
vendored
@ -150,7 +150,7 @@ $.widget( "ui.spinner", {
|
|||||||
|
|
||||||
// IE 6 doesn't understand height: 50% for the buttons
|
// IE 6 doesn't understand height: 50% for the buttons
|
||||||
// unless the wrapper has an explicit height
|
// unless the wrapper has an explicit height
|
||||||
if ( this.buttons.height() === uiSpinner.height() ) {
|
if ( this.buttons.height() === uiSpinner.height() && uiSpinner.height() > 0 ) {
|
||||||
uiSpinner.height( uiSpinner.height() );
|
uiSpinner.height( uiSpinner.height() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user