Bug 936192 - Misplaced icon for multiday events in the today pane. r=markus, a=philipp
authorDecathlon <bv1578@gmail.com>
Tue, 12 Nov 2013 15:49:22 +0100
changeset 16582 f6cf34c9ec231596c5b1070ae7429f917987dbe7
parent 16581 cf1f8a168d7ec2375eaa221f3015351f227efbdf
child 16583 2ba8d7cf29b140d1d15671105ecd7665fea0d19c
push id1029
push userbv1578@gmail.com
push dateTue, 12 Nov 2013 14:53:03 +0000
treeherdercomm-beta@f6cf34c9ec23 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkus, philipp
bugs936192
Bug 936192 - Misplaced icon for multiday events in the today pane. r=markus, a=philipp
calendar/base/content/agenda-listbox.xml
calendar/base/themes/common/today-pane.css
--- a/calendar/base/content/agenda-listbox.xml
+++ b/calendar/base/content/agenda-listbox.xml
@@ -86,17 +86,17 @@
     <content tooltip="itemTooltip">
       <xul:hbox anonid="agenda-container-box"
                 class="agenda-allday-container-box"
                 xbl:inherits="selected,disabled"
                 flex="1">
         <xul:vbox pack="center" flex="1">
           <xul:label anonid="agenda-allDayEvent-date" class="agenda-event-start"
                      crop="end" xbl:inherits="selected" hidden="true"/>
-          <xul:hbox flex="1" align="center">
+          <xul:hbox flex="1" align="start">
             <xul:image anonid="agenda-multiDayEvent-image" class="agenda-multiDayEvent-image"/>
             <xul:calendar-month-day-box-item anonid="allday-item" 
                                              flex="1"
                                              flat="true"/>
           </xul:hbox>
         </xul:vbox>
       </xul:hbox>
     </content>
--- a/calendar/base/themes/common/today-pane.css
+++ b/calendar/base/themes/common/today-pane.css
@@ -220,30 +220,35 @@ agenda-allday-richlist-item {
   height: 15px;
   border: 1px solid grey;
   cursor: pointer;
 }
 
 .agenda-calendar-image {
   list-style-image: url("chrome://calendar/skin/calendar-overlay.png");
   -moz-image-region: rect(0px 10px 10px 0px);
-  margin-top: 3px;
+  margin-top: 0.35em;
   -moz-margin-start: 4px;
   width: 10px;
   height: 10px;
 }
 
 .agenda-multiDayEvent-image {
   list-style-image: url("chrome://calendar/skin/calendar-overlay.png");
+  margin-top: 0.35em;
   -moz-margin-start: 3px;
   width: 10px;
   height: 10px;
   display: none;
 }
 
+.agenda-allday-container-box .agenda-multiDayEvent-image {
+  margin-top: 0.6em;
+}
+
 .agenda-multiDayEvent-image[type="start"] {
   -moz-image-region: rect(0px 20px 10px 10px);
   display: -moz-box;
 }
 
 .agenda-multiDayEvent-image[type="continue"] {
   -moz-image-region: rect(0px 30px 10px 20px);
   display: -moz-box;