summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-24 07:11:57 +0000
committeralecpl <alec@alec.pl>2009-04-24 07:11:57 +0000
commit111be7087f207b2e9a5bc71ebfa981b4024a08b9 (patch)
tree03ec300e1f4715b748ddb9cdd64dc6d1a12096a8
parenta8030493719c7c960f2c181f1a63b948b5e84aff (diff)
- re-fix r2382
-rw-r--r--program/js/app.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index bc39bdbfb..c22bd5397 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1232,9 +1232,6 @@ function rcube_webmail()
this.drag_start = function(list)
{
- this.initialBodyScrollTop = bw.ie ? 0 : window.pageYOffset;
- this.initialMailBoxScrollTop = document.getElementById("mailboxlist-container").scrollTop;
-
var model = this.task == 'mail' ? this.env.mailboxes : this.env.address_sources;
this.drag_active = true;
@@ -1244,6 +1241,9 @@ function rcube_webmail()
// save folderlist and folders location/sizes for droptarget calculation in drag_move()
if (this.gui_objects.folderlist && model)
{
+ this.initialBodyScrollTop = bw.ie ? 0 : window.pageYOffset;
+ this.initialListScrollTop = this.gui_objects.folderlist.parentNode.scrollTop;
+
var li, pos, list, height;
list = $(this.gui_objects.folderlist);
pos = list.offset();
@@ -1266,7 +1266,7 @@ function rcube_webmail()
if (this.gui_objects.folderlist && this.env.folder_coords) {
// offsets to compensate for scrolling while dragging a message
var boffset = bw.ie ? -document.documentElement.scrollTop : this.initialBodyScrollTop;
- var moffset = this.initialMailBoxScrollTop-document.getElementById('mailboxlist-container').scrollTop;
+ var moffset = this.initialListScrollTop-this.gui_objects.folderlist.parentNode.scrollTop;
var toffset = -moffset-boffset;
var li, pos, mouse;