Fixed computation of position of auto-completion list.

Monotone-Parent: a15cd58d41cfa4e9d3ac44ddaa4fd3b9f1b5a5f4
Monotone-Revision: 1a92d62c7bce360bb60b9ff6a4b682d804803349

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-04-01T20:24:29
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-04-01 20:24:29 +00:00
parent ee0560219c
commit 48d7aa958c

View File

@@ -193,8 +193,8 @@ var SOGoAutoCompletionInterface = {
// Show popup menu
var offsetScroll = Element.cumulativeScrollOffset(input);
var offset = Element.positionedOffset(input);
if (Element.up(input).tagName == 'TD')
// Special case for UIxListEditor
if (offset.top < 50)
// 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';