Bug 1556797 - Fix broken drag/drop of events in day and week views. r=philipp
authorGeoff Lankow <geoff@darktrojan.net>
Mon, 17 Jun 2019 22:27:17 +1200
changeset 35883 7cbed5436d28759d687e9a39e58ed40d7ab5121c
parent 35882 a3afad972033c878524e3a2c5ae5cb14e302af35
child 35884 2beda7edf8e9c210c4259c021906a4be3b5bb152
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersphilipp
bugs1556797
Bug 1556797 - Fix broken drag/drop of events in day and week views. r=philipp
calendar/base/content/calendar-multiday-view.xml
--- a/calendar/base/content/calendar-multiday-view.xml
+++ b/calendar/base/content/calendar-multiday-view.xml
@@ -1180,18 +1180,17 @@
         <body><![CDATA[
             this.clearMagicScroll();
 
             // If we are at the bottom or top of the view (or left/right when
             // rotated), calculate the difference and start accelerating the
             // scrollbar.
             let diffStart, diffEnd;
             let orient = event.target.getAttribute("orient");
-            let scrollbox = document.getAnonymousElementByAttribute(
-                           event.target, "anonid", "scrollbox");
+            let scrollbox = currentView().scrollbox;
             let boundingRect = scrollbox.getBoundingClientRect();
             if (orient == "vertical") {
                 diffStart = event.clientY - boundingRect.y;
                 diffEnd = boundingRect.y + boundingRect.height - event.clientY;
             } else {
                 diffStart = event.clientX - boundingRect.x;
                 diffEnd = boundingRect.x + boundingRect.width - event.clientX;
             }