Skip to content
Permalink
Browse files

Spinner: Adjust height check for IE 6 rendering.

  • Loading branch information...
scottgonzalez committed Oct 13, 2011
1 parent ae96ef7 commit 4694f85d4c1f0374b39175cf6c869ed8c38b28d8
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/jquery.ui.spinner.js
@@ -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() );
}

0 comments on commit 4694f85

Please sign in to comment.
You can’t perform that action at this time.