]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 24 Sep 2011 12:36:39 +0000 (14:36 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Sat, 24 Sep 2011 12:36:39 +0000 (14:36 +0200)
ui/jquery.ui.spinner.js

index 4b7239850da7a7cac4975dbd85acce41ef4ecdd5..09df97be7b90270ce3882cef38ae96fb6b01f385 100644 (file)
@@ -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() );
                }