Index: openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 28 Apr 2002 20:22:28 -0000 1.18 +++ openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 29 Apr 2002 16:22:07 -0000 1.19 @@ -215,6 +215,7 @@ for {set hour $start_hour} {$hour <= $end_hour} {incr hour} { if {$max_n_events < $n_events($hour)} { set max_n_events $n_events($hour) + ns_log Notice "BMA-DEBUG-CAL: Setting max_n_events to $max_n_events" } } @@ -301,6 +302,9 @@ set n_processed_events 0 + # A flag to force completion of the row + set must_complete_p 0 + # Go through events while {1} { set index [ns_set find $calendar_details $index_hour] @@ -320,7 +324,15 @@ # Calculate the colspan if {$n_processed_events == $n_starting_events($hour)} { # This is the last one, make it as wide as possible - set colspan [expr "$max_n_events - $n_events($hour) + 1"] + if {$hour_diff > 0} { + set colspan 1 + set must_complete_p 1 + } else { + # HACK + set colspan 1 + set must_complete_p 1 + #set colspan [expr "$max_n_events - $n_events($hour) + 1"] + } } { # Just make it one set colspan 1 @@ -334,8 +346,10 @@ ns_set delete $calendar_details $index } - if {$n_processed_events == 0} { - append return_html "