mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Spinner: Adjust height check for IE 6 rendering.
This commit is contained in:
parent
ae96ef7754
commit
4694f85d4c
3
ui/jquery.ui.spinner.js
vendored
3
ui/jquery.ui.spinner.js
vendored
@ -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() );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user