Bug 1355007 - Drag and drop events in multiday view causes a persisting drag shadow. r=philipp a=philipp
authorDecathlon <bv1578@gmail.com>
Mon, 10 Apr 2017 09:31:12 +0200
changeset 24457 14adadd2aca7
parent 24456 d5050ddfdc5c
child 24458 bd921bdc8b03
push id2055
push usermozilla@jorgk.com
push dateWed, 12 Apr 2017 15:22:52 +0000
treeherdercomm-aurora@d3970dc6cd9c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersphilipp, philipp
bugs1355007
Bug 1355007 - Drag and drop events in multiday view causes a persisting drag shadow. r=philipp a=philipp
calendar/base/content/calendar-multiday-view.xml
--- a/calendar/base/content/calendar-multiday-view.xml
+++ b/calendar/base/content/calendar-multiday-view.xml
@@ -1261,23 +1261,23 @@
       </method>
 
       <method name="firstLastShadowColumns">
         <parameter name="aOffset"/>
         <parameter name="aShadows"/>
         <body><![CDATA[
           let firstCol = this; // eslint-disable-line consistent-this
           let lastCol = this; // eslint-disable-line consistent-this
-          let firstIndex = aOffset || this.mDragState.offset;
+          let firstIndex = aOffset == null ? this.mDragState.offset : aOffset;
           let lastIndex = firstIndex;
           while (firstCol.previousSibling && firstIndex > 0) {
               firstCol = firstCol.previousSibling;
               firstIndex--;
           }
-          let lastShadow = aShadows || this.mDragState.shadows;
+          let lastShadow = aShadows == null ? this.mDragState.shadows : aShadows;
           while (lastCol.nextSibling && lastIndex < lastShadow - 1) {
               lastCol = lastCol.nextSibling;
               lastIndex++;
           }
 
           // returns first and last column with shadows that are visible in the
           // week and the positions of these (visible) columns in the set of
           // columns shadows of the occurrence