(js) Fix dialogs when partially visible

Fixes #2646, #3378
This commit is contained in:
Francis Lachapelle
2015-11-06 09:40:36 -05:00
parent 863f182e84
commit 106c6a24ae
2 changed files with 13 additions and 0 deletions
+2
View File
@@ -30,6 +30,8 @@ Bug fixes
- handle emails having an attachment as their content
- fixed JavaScript syntax error in attendees editor
- fixed wrong comparison of meta vs. META tag in HTML mails
- fixed popup menu position when moved to the left (#3381)
- fixed dialog position when at the bottom of the window (#2646, #3378)
2.3.2 (2015-09-16)
------------------
+11
View File
@@ -856,6 +856,11 @@ function onViewEventCallback(http) {
} else
para.hide();
var windowHeight = window.height();
var bottomOffset = windowHeight - div.getDimensions().height - top;
if (bottomOffset < 0)
top += bottomOffset;
div.setStyle({ left: left + "px", top: top + "px" });
div.show();
configureLinks(div);
@@ -3493,6 +3498,12 @@ function onCalendarImport(event) {
var div = $("uploadDialog");
var res = $("uploadResults");
var windowHeight = window.height();
var bottomOffset = windowHeight - div.getDimensions().height - top;
if (bottomOffset < 0)
top += bottomOffset;
res.setStyle({ top: top + "px", left: left + "px" });
div.setStyle({ top: top + "px", left: left + "px" });
div.show();