From 986744c41e3fb6f51ce743f241410dcde08ee374 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 27 Oct 2010 15:16:20 +0000 Subject: [PATCH] Monotone-Parent: 0ae9c70b160be4f5810d82d165885e7c2612bae3 Monotone-Revision: a6f3aca67e5e13f234b58d4fc16943cf2b93f609 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-10-27T15:16:20 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 ++++++ UI/WebServerResources/UIxContactEditor.js | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 22529ecf1..eb0882231 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-27 Wolfgang Sourdeau + + * UI/WebServerResources/UIxContactEditor.js: (onComboButtonClick): + take the container's scrollTop into account when displaying the + combobox menu. + 2010-10-26 Wolfgang Sourdeau * SoObjects/Contacts/SOGoContactSourceFolder.m diff --git a/UI/WebServerResources/UIxContactEditor.js b/UI/WebServerResources/UIxContactEditor.js index 4d0b6d12e..8bb8c54c6 100644 --- a/UI/WebServerResources/UIxContactEditor.js +++ b/UI/WebServerResources/UIxContactEditor.js @@ -204,13 +204,14 @@ function onComboButtonClick(event) { popupMenu(event, this.menuName, this.textInput); var container = $("categoryContainer"); var menuTop = (container.cascadeTopOffset() - + this.textInput.offsetTop + this.textInput.clientHeight); + - container.scrollTop + + this.textInput.offsetTop + + this.textInput.clientHeight); var menuLeft = this.textInput.cascadeLeftOffset() + 1; - var minWidth = this.textInput.clientWidth; + var width = this.textInput.clientWidth; menu.setStyle({ "top": menuTop + "px", "left": menuLeft + "px", - "width": minWidth + "px", - "min-width": minWidth + "px" }); + "width": width + "px" }); event.preventDefault(); }