From bf51b0e71c8b81bea937a8b49be4c8186d25b181 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Sat, 24 Sep 2011 14:36:39 +0200 Subject: Spinner: Fix the IE6-height-fix to not break the spinner when initialized while not visible --- ui/jquery.ui.spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.spinner.js') 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() ); } -- cgit v1.2.3