aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKris Borchers <kris.borchers@gmail.com>2012-11-24 23:18:51 -0600
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-26 10:28:25 +0100
commitd179cbaf3233ace0bc542e836c5c46e4129a9e0a (patch)
treeb98787043912548f686eb3e10e9be3408c55b4f0
parentec1f1bde76c555e7643899c5bbbb200353f780ea (diff)
downloadjquery-ui-d179cbaf3233ace0bc542e836c5c46e4129a9e0a.tar.gz
jquery-ui-d179cbaf3233ace0bc542e836c5c46e4129a9e0a.zip
Dialog: Update position when size is changed. Fixes #8789 - Dialog does not close for first click on chrome.
-rw-r--r--tests/visual/dialog/complex-dialogs.html3
-rw-r--r--ui/jquery.ui.dialog.js1
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/visual/dialog/complex-dialogs.html b/tests/visual/dialog/complex-dialogs.html
index 5c2e1d8a1..5cd9271ae 100644
--- a/tests/visual/dialog/complex-dialogs.html
+++ b/tests/visual/dialog/complex-dialogs.html
@@ -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,
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index ea5226ac5..bcfc6f07c 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -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 );