Closed
Bug 251771
Opened 21 years ago
Closed 20 years ago
Can't display multiple events properly [dayview/weekview layout]
Categories
(Calendar :: Sunbird Only, defect)
Calendar
Sunbird Only
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: hadmut, Assigned: mostafah)
References
()
Details
Attachments
(8 files)
46.32 KB,
image/png
|
Details | |
38.93 KB,
image/png
|
Details | |
1.10 KB,
text/calendar
|
Details | |
9.22 KB,
image/png
|
Details | |
133.04 KB,
image/png
|
Details | |
2.93 KB,
text/calendar
|
Details | |
7.30 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
771 bytes,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040707 Debian/1.7-5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040707 Debian/1.7-5
Hi,
see the given IETF calender, e.g. go to Aug 02 2004.
Calendar has obviously problems with displaying several
concurrent events properly.
regards
Hadmut
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
Comment 3•21 years ago
|
||
Attached testcase shows the problem.
The 'B' event should be wider.
Comment 4•21 years ago
|
||
Comment 5•21 years ago
|
||
Comment 6•21 years ago
|
||
Confirmed at TB 1.0/Calendar 2005-1-11
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Summary: Can't display multiple events properly → Can't display multiple events properly [dayview/weekview layout]
(patch -l -p 2 -i file.patch)
Fixes layout of concurrent events in day view and week view for example test
cases.
Tested on 0.2 branch calendar on TB1.0 (faster than Moz1.7.5).
Can test on trunk after nightly build is available.
Details:
compareDisplayEventStart: when starts are event, compare ends so longer events
will be to the left of short events, to reduce space fragmentation caused when
long event column appears between two short event columns.
setEventBoxClass: escape " as \" for better emacs view.
setDrawProperties:
o Move loop control expressions to top (clarify loop)
o Bind frequent array accesses to named var (clarify).
o Each contiguous overlapping group starts with 0 column slots.
Slots are added as needed as concurrent events are added.
As events end, slots are opened. New events fill all continguous
open slots available. If no open slots are available,
an existing event that occupies multiple slots can be shrunk.
- One problem was that the old algorithm didn't set the
event.startDrawSlot when taking slots from previous event.
- Another problem was that it allocated the slot at the
end of a block of slots, so that events at the same time
appeared in reverse order.
Therefore, now previous event only keeps first of multiple
slots, and new event takes rest of the column slots.
Any later same-time events must take columns afterward, so
they appear in same order as data source (order added to file).
o The last event in a row fills all the columns available.
But if a later row in the same group has more elements, then
the previous row no longer fills all the columns of the group.
Therefore, when adding a new column slot, Now look for events at
end of previous rows (ended and occupied previous last column)
and make them wider to occupy the new column.
Updated•20 years ago
|
QA Contact: gurganbl → sunbird
Comment 9•20 years ago
|
||
Comment on attachment 172065 [details] [diff] [review]
calendarWindow.setDrawProperties patch: fix ended rows of group when slot added
With this patch, the testcase looks much better.
(I know this are the old views, but we are very likely going to port this code
to the new views. No need to reinvent this part)
r=mvl
Attachment #172065 -
Flags: first-review+
Comment 10•20 years ago
|
||
Patch checked in. (updated to trunk first)
My oringinal testcase was the ietf file. That displays ok. The other testcase
(attachment 163977 [details]) still fails though, but i checked in anyway, because of the
huge improvement.
Leaving open for the remaining issue.
Comment 11•20 years ago
|
||
(patch -l -p 2 -i file.patch)
Fix conversion bug. ("<=" was converted to "<" with calDate.compare.)
Thanks for the conversion!
Attachment #195085 -
Flags: first-review?(mvl)
Comment 12•20 years ago
|
||
Comment on attachment 195085 [details] [diff] [review]
Fix conversion bug: '<' --> '<='
r=mvl
Attachment #195085 -
Flags: first-review?(mvl) → first-review+
Comment 13•20 years ago
|
||
patch checked in. The testcase not also works. thanks for the fix!
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•