Closed Bug 322060 Opened 19 years ago Closed 19 years ago

first (i.e. top-left) day should note current month, in multi-week view

Categories

(Calendar :: Sunbird Only, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: calum.mackay, Assigned: jminta)

References

Details

Attachments

(1 file, 1 obsolete file)

Linux/x86, my build today from CVS. In the old multi-week view, the first day shown, i.e the day at the top left, showed the month name as well as the day number. In the new multi-week view, the top-left day has only the day number. The month numbers are only shown for the last and first days of a month, regardless of where they appear in the view. For this reason I now find it much harder to "orientate" myself with this view, especially when changing dates via GoTo. Any chance of restoring the month name on the top-left (and perhaps bottom-right) days in multi-week, in addition to the (existing) last and first days of a month, please?
Attached patch patch for first box label (obsolete) — Splinter Review
Patch adds a label to the first box in the multiweek view. It's pretty trivial to add one to the bottom right as well, but that doesn't seem nearly as useful. If others want it though, I can add it as well.
Assignee: mostafah → jminta
Status: NEW → ASSIGNED
Attachment #210555 - Flags: first-review?(mvl)
Comment on attachment 210555 [details] [diff] [review] patch for first box label Won't it be much cleaner to tell the day boxes about their position, and then add the label code to the place where the other labels are generated, http://lxr.mozilla.org/seamonkey/source/calendar/base/content/calendar-month-view.xml#187 ?
(In reply to comment #2) > (From update of attachment 210555 [details] [diff] [review] [edit]) > Won't it be much cleaner to tell the day boxes about their position, and then > add the label code to the place where the other labels are generated, > http://lxr.mozilla.org/seamonkey/source/calendar/base/content/calendar-month-view.xml#187 > ? > This would require that we also add the label in the month view, which I think would introduce clutter there (given that there are already 4 dates with month-labels). I don't feel all that strongly about it, though, so if that's what everyone thinks is best, I can do that.
We could create a attribute that can enable or disable the display of the monthname on the first item. Then we can disable it for the monthview, and enable for multiweek.
This patch creates an attribute called showFullMonth. It's used here to decide whether or not we label the first and last days of the view. It can also be used to easily fix bug 321383.
Attachment #210555 - Attachment is obsolete: true
Attachment #211506 - Flags: first-review?(mvl)
Attachment #210555 - Flags: first-review?(mvl)
Comment on attachment 211506 [details] [diff] [review] implement showFullMonth >Index: calendar/base/content/calendar-decorated-multiweek-view.xml > var viewElement = document.getAnonymousElementByAttribute(this, "anonid", "view-element"); >+ viewElement.showFullMonth = false; > viewElement.tasksInView = this.mTasksInView; Bonus points if you fix that tab :) r=mvl
Attachment #211506 - Flags: first-review?(mvl) → first-review+
Before checking in, can you also fix this warning: [JavaScript Warning: "function set_showMonthLabel does not always return a value" {file: "chrome://calendar/content/calendar-month-view.xml" line: 173 column: 20 source: " return val; "}]
Patch checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: