Bug 1518659 - Bug 1516813 follow-up: Port bug 1472557: remove use of _scrollbox in imAccounts.js. r=aceman
authorJorg K <jorgk@jorgk.com>
Wed, 09 Jan 2019 22:52:39 +0100
changeset 34146 2bda8c04fa477114205f7205e54ea705fc6012b2
parent 34145 e43ba90ba5ec76a711ce536579f971365bbc03a5
child 34147 a0540daeda24705af98eac5f39b81427bd59b3ce
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersaceman
bugs1518659, 1516813, 1472557
Bug 1518659 - Bug 1516813 follow-up: Port bug 1472557: remove use of _scrollbox in imAccounts.js. r=aceman
mail/components/im/content/imAccounts.js
--- a/mail/components/im/content/imAccounts.js
+++ b/mail/components/im/content/imAccounts.js
@@ -657,17 +657,17 @@ var gAMDragAndDrop = {
     let listSize = accountList.getBoundingClientRect();
     let direction = 1;
     if (aClientY < listSize.top + this.MAGIC_SCROLL_HEIGHT)
       direction = -1;
     else if (aClientY < listSize.bottom - this.MAGIC_SCROLL_HEIGHT)
       // We are not on a scroll zone
       return;
 
-    accountList._scrollbox.scrollTop += direction * this.SCROLL_SPEED;
+    accountList.scrollTop += direction * this.SCROLL_SPEED;
   },
 
   onDrop(aEvent, aTransferData, aSession) {
     let accountElement = aEvent.explicitOriginalTarget;
     if (accountElement == gAccountManager.accountList)
       accountElement = gAccountManager.accountList.lastChild;
 
      if (!aSession.canDrop)