From 661f05e39bb7daacad2fbac9a2d457e5d89889e7 Mon Sep 17 00:00:00 2001 From: "Berend.Cornelius%sun.com" Date: Tue, 26 Aug 2008 13:50:06 +0000 Subject: [PATCH] Bug 409166-missing crop attribute in agenda checkbox;r=dbo git-svn-id: svn://10.0.0.236/trunk@253836 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/base/content/agenda-listbox.xml | 5 ++--- mozilla/calendar/base/themes/pinstripe/today-pane.css | 1 - mozilla/calendar/base/themes/winstripe/today-pane.css | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mozilla/calendar/base/content/agenda-listbox.xml b/mozilla/calendar/base/content/agenda-listbox.xml index f92f424647c..3613f6d1bef 100644 --- a/mozilla/calendar/base/content/agenda-listbox.xml +++ b/mozilla/calendar/base/content/agenda-listbox.xml @@ -101,9 +101,8 @@ if (showsToday) { this.kCheckbox.label = this.getAttribute("title"); } else { - if (synthetic.end.day == (synthetic.start.day + 1)) { - var label = getDateFormatter().formatDate(synthetic.start); - this.kCheckbox.label = label; + if (synthetic.duration == 1) { + this.kCheckbox.label = getDateFormatter().formatDate(synthetic.start); } else { this.kCheckbox.label = getDateFormatter().formatInterval(synthetic.start, synthetic.end); } diff --git a/mozilla/calendar/base/themes/pinstripe/today-pane.css b/mozilla/calendar/base/themes/pinstripe/today-pane.css index 2c49187156e..abcf2db2207 100644 --- a/mozilla/calendar/base/themes/pinstripe/today-pane.css +++ b/mozilla/calendar/base/themes/pinstripe/today-pane.css @@ -182,7 +182,6 @@ agenda-checkbox-richlist-item { -moz-binding: url("chrome://calendar/content/agenda-listbox.xml#agenda-checkbox-richlist-item"); -moz-user-focus: normal; - overflow: hidden; } agenda-richlist-item { diff --git a/mozilla/calendar/base/themes/winstripe/today-pane.css b/mozilla/calendar/base/themes/winstripe/today-pane.css index 8b0289e5512..8452bcf2f0a 100644 --- a/mozilla/calendar/base/themes/winstripe/today-pane.css +++ b/mozilla/calendar/base/themes/winstripe/today-pane.css @@ -185,7 +185,6 @@ agenda-checkbox-richlist-item { -moz-binding: url("chrome://calendar/content/agenda-listbox.xml#agenda-checkbox-richlist-item"); -moz-user-focus: normal; - overflow: hidden; } agenda-richlist-item {