From 3dbf39d548eb3c71a17a5c7f49d609ebc0dacb36 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 8 Nov 2010 16:28:50 +0000 Subject: [PATCH] See Changelog Monotone-Parent: 0c176852c57ca5f012fd36464ced594b6ef6c9fb Monotone-Revision: f98db9e0d0c41fc50f243d8f21ff421712d14518 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-11-08T16:28:50 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 5 +++++ UI/WebServerResources/SOGoDragHandles.js | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d12a14ada..dd7064e81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-08 Francis Lachapelle + + * UI/WebServerResources/SOGoDragHandles.js (adjust): for vertical + drag handles, prioritize the top limit rather than the bottom one. + 2010-11-05 Francis Lachapelle * UI/MailerUI/UIxMailListActions.m (-getSortedUIDsAction): now diff --git a/UI/WebServerResources/SOGoDragHandles.js b/UI/WebServerResources/SOGoDragHandles.js index c2d037b01..b7f789402 100644 --- a/UI/WebServerResources/SOGoDragHandles.js +++ b/UI/WebServerResources/SOGoDragHandles.js @@ -39,8 +39,10 @@ var SOGoDragHandlesInterface = { } } else if (this.dhType == 'vertical') { - this.dhLimit = window.height() - 20 - this.upperBlock.cumulativeOffset()[1] + this.upperBlock.offsetTop; - if (parseInt(this.getStyle("top")) > this.dhLimit) { + var windowHeight = window.height(); + this.dhLimit = windowHeight - 20 - this.upperBlock.cumulativeOffset().top + this.upperBlock.offsetTop; + if (parseInt(this.getStyle("top")) > this.dhLimit && + windowHeight > this.topMargin) { this.setStyle({ top: this.dhLimit + 'px' }); this.lowerBlock.setStyle({ top: this.dhLimit + 'px' }); this.upperBlock.setStyle({ height: (this.dhLimit - this.upperBlock.offsetTop) + 'px' });