diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-10-13 16:38:56 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-10-13 16:39:14 -0400 |
commit | 4694f85d4c1f0374b39175cf6c869ed8c38b28d8 (patch) | |
tree | 63dcfe842acf42b11fb3604e93ac4543976bdc9d | |
parent | ae96ef7754caf05de7025e0ffe24f5af652747b5 (diff) | |
download | jquery-ui-4694f85d4c1f0374b39175cf6c869ed8c38b28d8.tar.gz jquery-ui-4694f85d4c1f0374b39175cf6c869ed8c38b28d8.zip |
Spinner: Adjust height check for IE 6 rendering.
-rw-r--r-- | ui/jquery.ui.spinner.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 31de2c9da..b834dc2f4 100644 --- a/ui/jquery.ui.spinner.js +++ b/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() ); } |