diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gallery.dialog.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gallery.dialog.js b/lib/gallery.dialog.js index 70f577c5..175f2a42 100644 --- a/lib/gallery.dialog.js +++ b/lib/gallery.dialog.js @@ -54,7 +54,8 @@ function openDialog(element, on_success) { if (parent.width() < 400) { parent.css("width", 400); } - parent.css({"top": $(window).height() / 2 - parent.height() / 2, + parent.css({"position": "fixed", + "top": $(window).height() / 2 - parent.height() / 2, "left": $(window).width() / 2 - parent.width() / 2, "opacity": "1.0" }); |