diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-09-24 14:36:39 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-09-24 14:36:39 +0200 |
commit | bf51b0e71c8b81bea937a8b49be4c8186d25b181 (patch) | |
tree | 012db7a17d025ca95fb9e0b355abd05668001889 | |
parent | 34a0479d1cbb0acf5d86818506deec78bfbb373b (diff) | |
download | jquery-ui-bf51b0e71c8b81bea937a8b49be4c8186d25b181.tar.gz jquery-ui-bf51b0e71c8b81bea937a8b49be4c8186d25b181.zip |
Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not visible
-rw-r--r-- | ui/jquery.ui.spinner.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 4b7239850..09df97be7 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -150,7 +150,7 @@ $.widget( "ui.spinner", { // IE 6 doesn't understand height: 50% for the buttons // 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() ); } |