Skip to content
Permalink
Browse files
Dialog: Update position when size is changed. Fixes #8789 - Dialog do…
…es not close for first click on chrome.
  • Loading branch information
kborchers authored and jzaefferer committed Nov 26, 2012
1 parent ec1f1bd commit d179cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -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,
@@ -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 );

0 comments on commit d179cba

Please sign in to comment.