Hi All,
I am using the <asp: Calendar> object. In the OnDayRender event handler
I am putting text into certain day boxes, and leaving others blank. The
effect is that some months have no additonal text rendered, some months
will have 2 weeks(rows) with no additional content and 1 week with 2 or
3 rows of rendered text. Essentially, the size of the Calendar
fluctuates depending on the data im rendering.
Setting the width property is not a problem and solves the fluctuation
on that axis; however, if I set the height property to, say, 500, then
on a month with 3 blank rows and 1 row with 5 lines of text, the other
rows get squished down .... If I dont specify the height, then the
whole calendar goes tiny on months with no data.
At no point will any row have to hold more than 5 lines of 8pt text.
What I am thinking would be the perfect fix is if I could specify that
every row of the calendar table default to 5 lines of height no matter
what ... then the calendar would always keep a uniform size.
Problem is, not sure how to do that.
Appreciate any input, thanks