Closed
Bug 236551
Opened 20 years ago
Closed 19 years ago
Day view improvements ( patch coming)
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jku, Assigned: jku)
Details
Attachments
(1 file, 1 obsolete file)
49.93 KB,
patch
|
mostafah
:
first-review+
|
Details | Diff | Splinter Review |
First, sorry for the size of the patch that's coming, there were just a lot of things depending on other things depending on other things... I tried to document a little, see below. Let me know if you don't like some of the design decisions, or if you want more info. -Jussi *** These were my goals (I sent this to the news group earlier): Allday events: -------------- - do not crop titles: use multiple lines - try to fit allday events to as few lines as possible - show location on allday eventbox - allday events have borders - allday events starting before today do not have left border, and are always the leftmost event on the line. - similarly, allday events ending after today do not have right border, and are always the rightmost event on the line. Normal events: -------------- - better horizontal event placing. Events no longer overlap each other visually. - location text is visible on event - description text is visible on event. Description may not fit entirely, scrolling is not enabled. *** This is what I changed: - DayView.refreshEvents() is pretty much rewritten to make it more readable and to take advantage of the new functions. The eventboxes are still added to DOM in this function, but the eventbox place calculations and the actual creation of boxes is done in own functions, see below. - CalendarView.setDrawProperties() is a new function that calculates eventbox horizontal placing attributes. Can be used from weekview too. - DayView.setAllDayDrawProperties() is anew functionthat calculate some parameters aiding allday-eventbox placing and drawing - DayView.createAllDayEventBox() is brand new. This was done in refreshEvents before. - DayView.createEventBox() is changed somewhat. - Slight change in dayview.xul to enable the new all-day event stuff - Some changes in calendar.css (same in both skins) *** Known issues: - modern skin not tested - reeeally long all day event titles break things (happened before too) - all-day event placing is based on a trial and error method - this might mean slower screen update - description text formatting is not respected (minor) - sometimes there are variations in event width (really minor)
Assignee | ||
Comment 1•20 years ago
|
||
Assignee: mostafah → jhkukkon
Status: NEW → ASSIGNED
Assignee | ||
Updated•20 years ago
|
Attachment #142999 -
Flags: first-review?(mostafah)
Comment 2•20 years ago
|
||
Comment on attachment 142999 [details] [diff] [review] patch described in comment 0 Looks good. One issue though: A piece of code was removed that took care of highlighting events when they were selected in the upper list. Any reason why? Also I beg, I dearly beg for improvements to be submitted in seperate stages. The time to review patches grows exponentially with the size of the patch and needs a larger chunk of time which is hard to find. I understand there are a lot of dependencies but it is not totally impossible to categorize the change.
Assignee | ||
Comment 3•20 years ago
|
||
Looking at the patch now I must say I'm ashamed about it, you're absolutely right about the size. I'm not going to take offence if you tell me to submit this in phases, but I am going to leave that as your call (I'm not sure if you did that already in comment 2 or if it was general advice for future). About event highlighting: Good catch. I took it off to put it into create*EventBox-functions, but clearly my mind wandered somewhere in the middle... fixed that. I meant what I said first - so let me know if I should redo this in smaller parts.
Attachment #142999 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #144567 -
Flags: first-review?(mostafah)
Comment 4•20 years ago
|
||
Comment on attachment 144567 [details] [diff] [review] patch with fixes re comment2( checked in ) No that's fine. Thanks for understanding. The patch looks complete now. I'll check it in when the tree opens for 1.8 since this is a big change.
Attachment #144567 -
Flags: first-review?(mostafah) → first-review+
Updated•20 years ago
|
Attachment #142999 -
Flags: first-review?(mostafah) → first-review-
Comment 5•20 years ago
|
||
Comment on attachment 144567 [details] [diff] [review] patch with fixes re comment2( checked in ) Patch checked in.
Attachment #144567 -
Attachment description: patch with fixes re comment2 → patch with fixes re comment2( checked in )
Comment 6•19 years ago
|
||
Looks like this should have been resolved fixed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 7•18 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in
before you can comment on or make changes to this bug.
Description
•