aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-24 14:36:39 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-09-24 14:36:39 +0200
commitbf51b0e71c8b81bea937a8b49be4c8186d25b181 (patch)
tree012db7a17d025ca95fb9e0b355abd05668001889
parent34a0479d1cbb0acf5d86818506deec78bfbb373b (diff)
downloadjquery-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.js2
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() );
}