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
maint-2.0.2
Francis Lachapelle 2010-11-08 16:28:50 +00:00
parent d720675edf
commit 3dbf39d548
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-11-08 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/SOGoDragHandles.js (adjust): for vertical
drag handles, prioritize the top limit rather than the bottom one.
2010-11-05 Francis Lachapelle <flachapelle@inverse.ca>
* UI/MailerUI/UIxMailListActions.m (-getSortedUIDsAction): now

View File

@ -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' });