mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-29 20:08:06 -05:00
Dialog: Fixed #3086: Fixed problem with auto margins in IE.
This commit is contained in:
@@ -244,15 +244,15 @@ $.widget("ui.dialog", {
|
||||
pTop = Math.max(pTop, minTop);
|
||||
this.uiDialog.css({top: pTop, left: pLeft});
|
||||
},
|
||||
|
||||
|
||||
size: function() {
|
||||
var container = this.uiDialogContainer,
|
||||
titlebar = this.uiDialogTitlebar,
|
||||
content = this.element,
|
||||
tbMargin = parseInt(content.css('margin-top'), 10)
|
||||
+ parseInt(content.css('margin-bottom'), 10),
|
||||
lrMargin = parseInt(content.css('margin-left'), 10)
|
||||
+ parseInt(content.css('margin-right'), 10);
|
||||
tbMargin = (parseInt(content.css('margin-top'), 10) || 0)
|
||||
+ (parseInt(content.css('margin-bottom'), 10) || 0),
|
||||
lrMargin = (parseInt(content.css('margin-left'), 10) || 0)
|
||||
+ (parseInt(content.css('margin-right'), 10) || 0);
|
||||
content.height(container.height() - titlebar.outerHeight() - tbMargin);
|
||||
content.width(container.width() - lrMargin);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user