Adjacent events displayed as if they were overlapping (daily calendar view)

Bug #79960 reported by Raoul Bhatia
10
Affects Status Importance Assigned to Milestone
SchoolTool
Confirmed
Low
Unassigned

Bug Description

there is bug in rendering end-to-start entries.

first example (bug):
event1: 08:00-12:05
event2: 12:05-14:20

as seen at http://raoul.bhatia.at/~raoul/schoolbell.png, they are not in the
same column. this is also the case with 2 events like 08:00-09:30 and 09:40-12:05

second example (right)
event1: 08:00-09:00
event2: 09:00-12:30

as seen at http://raoul.bhatia.at/~raoul/schoolbell2.png, these events are
placed in the same column.

Tags: calendar ui html
Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :
Revision history for this message
Raoul Bhatia (raoul-bhatia) wrote :

second example

Revision history for this message
Tom Hoffman (tom-hoffman) wrote :

I wouldn't call this a bug. Perhaps a small UI glitch.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Confirming this wart.

Technical details: In olden times SchoolTool/SchoolBell displayed all calendar
events in an HTML table, with one row for each hour. Thus we extend the
boundaries of events to hour boundaries before splitting them into columns, so
that they do not overlap when displayed in that fashion.

Later we added CSS absolute positioning rules so that events are now aligned to
minutes, rather than hours. (I forgot exactly if we round to 1, 5 or 15 minute
intervals). Browsers that do not CSS will fall back to the old table layout.

Suggestion: calculate the column of an event in two ways:

  1) so that there are no overlaps when snapping to hour-boundaries

  2) so that there are no overlaps when snapping to minute boundaries

Then use (1) for placing events inside table cells, and use (2) to specify the
horizontal position of events via CSS, just like we specify the vertical
position. In this way we get correct output on both CSS-enabled and
CSS-disabled browsers.

Or we could ditch non-CSS browsers (sniff, I like elinks...) and redo the
layout. Not sure which solution is simpler.

Changed in schooltool:
importance: Wishlist → Low
status: In Progress → Confirmed
Revision history for this message
Thom Hastings (tghastings) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.