Skip to content

Commit

Permalink
Dialog: Update position when size is changed. Fixes #8789 - Dialog do…
Browse files Browse the repository at this point in the history
…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.
3 changes: 1 addition & 2 deletions tests/visual/dialog/complex-dialogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
$(function() {
var dialog = $( "#dialog" ).dialog({
modal: true,
height: 350,
width: 500,
buttons: [
{
Expand All @@ -45,7 +44,7 @@
showText: false
}
]
}),
}).dialog("option", "height", 600),

datepickerDialog = $( "#dialog-datepicker" ).dialog({
autoOpen: false,
Expand Down
1 change: 1 addition & 0 deletions ui/jquery.ui.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit d179cba

Please sign in to comment.