aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 );