Spinner: Adjust height check for IE 6 rendering.

This commit is contained in:
Scott González 2011-10-13 16:38:56 -04:00
parent ae96ef7754
commit 4694f85d4c

View 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() );
}