I would like to put forth an idea to get rid of extra white space within the hour blocks.
Currently it appears that when the schedule is built instead of building one row at a time(one hour time slot for each day of the week) and ordering the data that way it is called up one column at a time (one hour after another through the whole day).
Currently it would call up the first day midnight to 1am, then 1am to 2am and keep working through the week in this way.
Changing the height tags to min-height would allow the cells to auto adjust but this would end up with things getting out of alignment. If things were lined up so that they fell within the hour markers defined on the right this would work. This could be done using a TBODY /TBODY tags at the beginning and end of each hour. This is not possible due to the way the information in sorted in the call from the database.
It could be that data needs to be changed to be called up one row at a time so these tags can be inserted. So that it would call up
midnight to 1am the first day, then midnight to 1am the second day, etc.
This would allow the TBODY tags to be used to keep each hour's program within its tbody but still allow for auto adjustment of the height.
This would be in the function station_schedule_week_page in the station_schedule.module.
Right now each column is a cell in the table, which has only 16 cells and 2 rows, if I am reading the source correctly. The rest in done with DIV tags. I think that this is a good use of a table for tabular data. The ability to have multiple TBODYs in one table allows for each hour to be given its own TBODY and then all scheduled items should be in that TBODY row.
I have attached a screen shot after changing the height to min-height in station_schedule.pages.inc
As you can see the white space is reduced but the programs do not line up across the schedule. The programs "Keys for Kids", Mission Network News" and "A Word with You" should all be in the 6-7 o'clock hour and the "Islander's Hour" should start at 7 o'clock.
A compromise may need to be made. To try and have everything line up and eliminate white space could be very hard to do, but to make all the programs fall within their hour row should be possible. I have to admit I am not sure how this will work for shows that are longer than one hour. It maybe that we need a completely different way to handle this.
| Comment | File | Size | Author |
|---|---|---|---|
| min-height_schedule.png | 18.18 KB | frederickjh |