mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 20:35:24 +00:00
Fix for bug #535.
Monotone-Parent: 4038e1c81a3afe4ac83664ba6c3a983a6a52c21e Monotone-Revision: b4e7bba523520804e5e2156a93f9fd775463b75f Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-03-31T20:59:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -541,15 +541,15 @@ function popupMenu(event, menuId, target) {
|
||||
|
||||
var menuTop = Event.pointerY(event) + deltaY;
|
||||
var menuLeft = Event.pointerX(event) + deltaX;
|
||||
var heightDiff = (window.height()
|
||||
- (menuTop + popup.offsetHeight));
|
||||
var heightDiff = ((window.height() + deltaY)
|
||||
- (menuTop + popup.offsetHeight + 1));
|
||||
if (heightDiff < 0)
|
||||
menuTop += heightDiff;
|
||||
|
||||
var leftDiff = (window.width()
|
||||
var leftDiff = ((window.width() + deltaX)
|
||||
- (menuLeft + popup.offsetWidth));
|
||||
if (leftDiff < 0)
|
||||
menuLeft -= popup.offsetWidth;
|
||||
menuLeft -= (popup.offsetWidth + 1);
|
||||
|
||||
var isVisible = true;
|
||||
if (popup.prepareVisibility)
|
||||
|
||||
Reference in New Issue
Block a user