From d049b722ce0a2fed26a6e8e1d04f76daed28b113 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 6 Sep 2006 22:54:53 +0000 Subject: [PATCH] Monotone-Parent: 8eea06416213949b3ff8e1701db3e1efc59496df Monotone-Revision: 321c07dcd402a9e1f67210981ec9fa1b6ac69ac5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-06T22:54:53 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/UIxAppointmentEditor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UI/WebServerResources/UIxAppointmentEditor.js b/UI/WebServerResources/UIxAppointmentEditor.js index 323f0e7b9..478c28c60 100644 --- a/UI/WebServerResources/UIxAppointmentEditor.js +++ b/UI/WebServerResources/UIxAppointmentEditor.js @@ -117,8 +117,7 @@ function toggleDetails() { var buttonsDiv = $("buttons"); var wHeight = 0; if (!window._fullHeight) { - var minHeight = (document.getElementsByTagName("div")[0].clientHeight - + 2 * buttonsDiv.clientHeight); + var minHeight = (buttonsDiv.offsetTop + 2 * buttonsDiv.clientHeight); window._fullHeight = minHeight + div.clientHeight; window._hiddenHeight = minHeight; }