See ChangeLog.

Monotone-Parent: fe351629b595bd5c5cd4b03a129c97d14d342fc7
Monotone-Revision: 00dd99d5ee953d6a729360790b3e5b7242027da2

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-07-27T19:24:40
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-07-27 19:24:40 +00:00
parent ad76ca2d8b
commit 8a3fcb7cc4
2 changed files with 9 additions and 4 deletions

View File

@@ -192,12 +192,11 @@ var SOGoAutoCompletionInterface = {
}
// Show popup menu
var div = Element.up(input, 'DIV');
var offsetScroll = Element.cumulativeScrollOffset(input);
var offset = Element.positionedOffset(input);
if (div.getStyle('position') == 'relative')
// Hack for some situations where the offset must be computed differently
offset = Element.cumulativeOffset(input);
if ($(document.body).hasClassName("popup") && typeof initPopupMailer == 'undefined')
// Hack for some situations where the offset must be computed differently
offset = Element.cumulativeOffset(input);
var top = offset.top - offsetScroll.top + node.offsetHeight + 3;
var height = 'auto';
var heightDiff = window.height() - offset[1];