Skip to content

Commit d179cba

Browse files
kborchersjzaefferer
authored andcommittedNov 26, 2012
Dialog: Update position when size is changed. Fixes #8789 - Dialog does not close for first click on chrome.
1 parent ec1f1bd commit d179cba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎tests/visual/dialog/complex-dialogs.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
$(function() {
2525
var dialog = $( "#dialog" ).dialog({
2626
modal: true,
27-
height: 350,
2827
width: 500,
2928
buttons: [
3029
{
@@ -45,7 +44,7 @@
4544
showText: false
4645
}
4746
]
48-
}),
47+
}).dialog("option", "height", 600),
4948

5049
datepickerDialog = $( "#dialog-datepicker" ).dialog({
5150
autoOpen: false,

‎ui/jquery.ui.dialog.js

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ $.widget("ui.dialog", {
527527

528528
if ( resize ) {
529529
this._size();
530+
this._position();
530531
}
531532
if ( this.uiDialog.is( ":data(ui-resizable)" ) ) {
532533
this.uiDialog.resizable( "option", resizableOptions );

0 commit comments

Comments
 (0)
Please sign in to comment.