From: Jörn Zaefferer Date: Sat, 24 Sep 2011 12:36:39 +0000 (+0200) Subject: Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not... X-Git-Tag: 1.9m7~217 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf51b0e71c8b81bea937a8b49be4c8186d25b181;p=jquery-ui.git Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not visible --- 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() ); }