[kronolith] Render error in week view

Chuck Hagenbuch chuck@horde.org
Tue, 24 Sep 2002 21:25:55 -0400


Quoting Colin Burnett <cburnett@candysporks.org>:

> In trying to understand the parsing algorithm in the DayView.php file, I
> came up with a suggestion.  First an example.  If you have two events at 
> one time and three events at another time (same day) then the two events 
> have to split three columns (maxspan=3).  I suggest setting maxspan to the 
> LCM of the overlap values.  So in this case, LCM(2,3)=6 which splits all 
> five events up evenly.  I would be willing to code it out, but alas my 
> list of projects is quite long.

This is the way the algorithm has worked since I coded it years ago. Try
this, which I just merged to RELENG_1:

http://cvs.horde.org/diff.php/kronolith/lib/DayView.php?r1=1.77.2.4&r2=1.77.2.5&ty=u

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot