|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
Q. Why do the Calendars (non-continue-style) have an xtra row of empty cells after the last day of the month?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That is because certain month spans over 5 weeks and certain month spans over 6 weeks. For example, April, 2009 spans over 5 weeks, but May, 2009 spans over 6 weeks. As a result, all Calendar are rendered with rooms for 6 weeks because otherwise when you scroll from a 5 week month to a 6 week month (for example, scrolling from April, 2009 to May 2009), the Calendar would have to resize itself to accommodates. Obviously that is not good.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
Okay, thanks for explaining.......
|
|
Rank: Advanced Member Groups: Member
Joined: 10/15/2008 Posts: 45
|
On top of that, bare in mind that starting week day varies across cultures, which impacts same month as well. Consider this month; March 2009 for example, which started on Sunday.
In a US calender where week starts on Sunday, first day of the month occupies first cell of first row, leaving last row empty. In a Europeans calender where week starts on Monday, first day of the month will occupy last cell of first row. Last 2 days of March occupy first 2 cells of last row!
A smart implementation by EO no doubt...
Regards,
Saed Hamdan "Man may be destroyed but not defeated" -Hemmingway
|
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2009 Posts: 41
|
Very good, thanks for the info...
|
|