mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Prevent the default styles for resizable elements from totally killing dialog positioning (finally).
Fixes #5084 - 2 dialogs pos false on close.
This commit is contained in:
parent
dd92e16081
commit
65b063b039
4
ui/jquery.ui.dialog.js
vendored
4
ui/jquery.ui.dialog.js
vendored
@ -352,6 +352,9 @@ $.widget("ui.dialog", {
|
||||
handles = (handles === undefined ? this.options.resizable : handles);
|
||||
var self = this,
|
||||
options = self.options,
|
||||
// .ui-resizable has position: relative defined in the stylesheet
|
||||
// but dialogs have to use absolute or fixed positioning
|
||||
position = self.uiDialog.css('position'),
|
||||
resizeHandles = typeof handles == 'string'
|
||||
? handles
|
||||
: 'n,e,s,w,se,sw,ne,nw';
|
||||
@ -380,6 +383,7 @@ $.widget("ui.dialog", {
|
||||
$.ui.dialog.overlay.resize();
|
||||
}
|
||||
})
|
||||
.css('position', position)
|
||||
.find('.ui-resizable-se').addClass('ui-icon ui-icon-grip-diagonal-se');
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user