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 25, 2012
1 parent ec1f1bd commit d179cbaf3233ace0bc542e836c5c46e4129a9e0a
Showing with 2 additions and 2 deletions.
  1. +1 −2 tests/visual/dialog/complex-dialogs.html
  2. +1 −0 ui/jquery.ui.dialog.js
@@ -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.
You can’t perform that action at this time.