mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Update position when size is changed. Fixes #8789 - Dialog does not close for first click on chrome.
This commit is contained in:
parent
ec1f1bde76
commit
d179cbaf32
@ -24,7 +24,6 @@
|
||||
$(function() {
|
||||
var dialog = $( "#dialog" ).dialog({
|
||||
modal: true,
|
||||
height: 350,
|
||||
width: 500,
|
||||
buttons: [
|
||||
{
|
||||
@ -45,7 +44,7 @@
|
||||
showText: false
|
||||
}
|
||||
]
|
||||
}),
|
||||
}).dialog("option", "height", 600),
|
||||
|
||||
datepickerDialog = $( "#dialog-datepicker" ).dialog({
|
||||
autoOpen: false,
|
||||
|
1
ui/jquery.ui.dialog.js
vendored
1
ui/jquery.ui.dialog.js
vendored
@ -527,6 +527,7 @@ $.widget("ui.dialog", {
|
||||
|
||||
if ( resize ) {
|
||||
this._size();
|
||||
this._position();
|
||||
}
|
||||
if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
|
||||
this.uiDialog.resizable( "option", resizableOptions );
|
||||
|
Loading…
Reference in New Issue
Block a user