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(); }