# HG changeset patch # User Paul Boddie # Date 1446571831 -3600 # Node ID d72c57e949d8d5a8778c32e4d6fc5f4a2e44af9c # Parent 5c63dfef0f746622f30821e19b1dce3ab9b5605a Propagated the minimum column group width to the cell layout code. diff -r 5c63dfef0f74 -r d72c57e949d8 imipweb/calendar.py --- a/imipweb/calendar.py Mon Nov 02 22:00:26 2015 +0100 +++ b/imipweb/calendar.py Tue Nov 03 18:30:31 2015 +0100 @@ -728,6 +728,8 @@ page.colgroup(span=1, id="columns-timeslot") + # Make column groups at least two cells wide. + for group_type, columns in zip(group_types, group_columns): page.colgroup(span=max(columns, 2), id="columns-%s" % group_type) @@ -891,6 +893,10 @@ # Obtain slots for the time point from each group. for columns, slots, group_type in zip(group_columns, groups, group_types): + + # Make column groups at least two cells wide. + + columns = max(columns, 2) active = slots and slots.get(point) # Where no periods exist for the given time interval, generate