From 48d7aa958c3cc6b7d00a6f47d5f93ffcae2e6b3a Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 1 Apr 2010 20:24:29 +0000 Subject: [PATCH] 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 --- UI/WebServerResources/SOGoAutoCompletion.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/SOGoAutoCompletion.js b/UI/WebServerResources/SOGoAutoCompletion.js index 1cd330ef6..2820ff16c 100644 --- a/UI/WebServerResources/SOGoAutoCompletion.js +++ b/UI/WebServerResources/SOGoAutoCompletion.js @@ -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';