mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-10 10:55:08 +00:00
merge of '55428fa2e114fb8a494d7411a553fb0a378a4995'
and 'b4e7bba523520804e5e2156a93f9fd775463b75f' Monotone-Parent: 55428fa2e114fb8a494d7411a553fb0a378a4995 Monotone-Parent: b4e7bba523520804e5e2156a93f9fd775463b75f Monotone-Revision: a15cd58d41cfa4e9d3ac44ddaa4fd3b9f1b5a5f4 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-03-31T20:59:28 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