]> source.dussan.org Git - jquery-ui.git/commitdiff
Spinner: Adjust height check for IE 6 rendering.
authorScott González <scott.gonzalez@gmail.com>
Thu, 13 Oct 2011 20:38:56 +0000 (16:38 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 13 Oct 2011 20:39:14 +0000 (16:39 -0400)
ui/jquery.ui.spinner.js

index 31de2c9da22a84406986b0a3f498818668409f6a..b834dc2f49a6d4e964b0b92bdd59ac4fb5ebd074 100644 (file)
@@ -151,7 +151,8 @@ $.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() && uiSpinner.height() > 0 ) {
+               if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&
+                               uiSpinner.height() > 0 ) {
                        uiSpinner.height( uiSpinner.height() );
                }