summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gallery.dialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js
index 6c2993fd..ace588f6 100644
--- a/lib/gallery.dialog.js
+++ b/lib/gallery.dialog.js
@@ -61,7 +61,7 @@
dialogWidth = size.width() - 100;
// Set the iframe width and height
$("#gDialog iframe").width("100%").height(size.height() - 100);
- } else if ($("#gDialog form").length == 0) {
+ } else if ($("#gDialog .gDialogPanel").length) {
dialogWidth = size.width() - 100;
$("#gDialog").dialog("option", "height", size.height() - 100);
} else if (childWidth == "" || childWidth > 300) {