mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Fixed size calculations for dialogs.
Fixes #5392 - Dialog explicit height doesn't match given value from set option.
This commit is contained in:
parent
9786a19c82
commit
b297b3fa6a
7
ui/jquery.ui.dialog.js
vendored
7
ui/jquery.ui.dialog.js
vendored
@ -622,8 +622,11 @@ $.widget("ui.dialog", {
|
||||
|
||||
// reset content sizing
|
||||
// hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350)
|
||||
this.element.css('width', 'auto')
|
||||
.height(0);
|
||||
this.element.css({
|
||||
width: 'auto',
|
||||
minHeight: 0,
|
||||
height: 0
|
||||
});
|
||||
|
||||
// reset wrapper sizing
|
||||
// determine the height of all the non-content elements
|
||||
|
Loading…
Reference in New Issue
Block a user