Bug 1558383 - Fix double-click on all-day event in Today Pane. r=philipp
authorGeoff Lankow <geoff@darktrojan.net>
Tue, 18 Jun 2019 22:52:28 +1200
changeset 35946 e0cb4807daeec4bf9d7517e09623da43f1a87299
parent 35945 4cdda25ab4a73879c53125cadb81525ade52e002
child 35947 259114255352b7456cf207d3586afdd69533d869
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersphilipp
bugs1558383
Bug 1558383 - Fix double-click on all-day event in Today Pane. r=philipp
calendar/base/content/calendar-view-core.xml
calendar/base/themes/common/today-pane.css
--- a/calendar/base/content/calendar-view-core.xml
+++ b/calendar/base/content/calendar-view-core.xml
@@ -332,17 +332,19 @@
           if (this.selected && !(event.ctrlKey || event.metaKey) &&
                 cal.acl.isCalendarWritable(this.mOccurrence.calendar)) {
               if (this.editingTimer) {
                   clearTimeout(this.editingTimer);
               }
               this.editingTimer = setTimeout(() => this.startEditing(), 350);
           } else {
               this.select(event);
-              event.stopPropagation();
+              if (!this.closest("richlistitem")) {
+                  event.stopPropagation();
+              }
           }
       ]]></handler>
 
       <handler event="dblclick" button="0"><![CDATA[
           event.stopPropagation();
 
           // stop 'single click edit' timeout (if started)
           if (this.editingTimer) {
--- a/calendar/base/themes/common/today-pane.css
+++ b/calendar/base/themes/common/today-pane.css
@@ -277,28 +277,22 @@ agenda-allday-richlist-item {
 }
 
 .wrap {
   overflow: visible;
 }
 
 .agenda-container-box {
   border-bottom: 1px dotted #C0C0C0;
-  margin-inline-start: 4px;
-  margin-inline-end: 4px;
-  padding-top: 2px;
-  padding-bottom: 2px;
+  padding: 2px 4px;
 }
 
 .agenda-allday-container-box {
   border-bottom: 1px dotted #C0C0C0;
-  margin-inline-start: 4px;
-  margin-inline-end: 4px;
-  padding-top: 4px;
-  padding-bottom: 4px;
+  padding: 4px;
 }
 
 .agenda-container-box[selected="true"],
 .agenda-allday-container-box[selected="true"],
 .agenda-container-box[selected="true"][current="true"],
 .agenda-allday-container-box[selected="true"][current="true"] {
   background-color: #FDF5A0;
   color: #000000;