We have setup a calendar with DayCellSpacing = 3, and it runs perfectly in IE. However, in Firefox (PC or Mac) and Safari, when changing months, it loses the DayCellSpacing and resizes the calendar. The weird thing is that it only does this every other month -- so if it starts on January, February will go to DayCellSpacing=0, March back to DCS=3, April DCS=0, May DCS=3, etc. There is nothing in our code that changes DayCellSpacing -- we have it statically declared in the ASPX file.
Here is a stripped down test page with just the calendar. It runs 100% fine in IE7, but has this other behavior in other browsers. View this link in both IE and FF and change the months and you will see the behavior. Any help you can provide is much appreciated! Happy New Year!
http://www.gaston360.com/test/calendartest.aspxHere is the sample code
Code: HTML/ASPX
<eo:Calendar ID="Calendar1" runat="server" ControlSkinID="None" AutoPostbackOnScroll="false" AutoPostbackOnSelect="True" DayCellHeight="20"
DayCellSpacing="3" DayCellWidth="26" DayHeaderFormat="FirstLetter" DisabledDates=""
GridLineColor="White" GridLineFrameVisible="False" OtherMonthDayVisible="True"
SelectedDates="" Style="font-weight: bold; color: white; font-family: Arial;
background-color: black" TitleLeftArrowImageUrl="~/Images/Calendar/Left-Arrow.gif"
TitleRightArrowImageUrl="~/Images/Calendar/Right-Arrow.gif">
<SelectedDayStyle CssText="background-color:black;border-bottom-color:#eaeaea;border-bottom-style:solid;border-bottom-width:0px;border-left-color:#eaeaea;border-left-style:solid;border-left-width:0px;border-right-color:#eaeaea;border-right-style:solid;border-right-width:0px;border-top-color:#eaeaea;border-top-style:solid;border-top-width:0px;color:#F97A02;font-family:Arial;font-size:16px;font-weight:bold;" />
<DayStyle CssText="background-color:black;border-bottom-color:#eaeaea;border-bottom-style:solid;border-bottom-width:0px;border-left-color:#eaeaea;border-left-style:solid;border-left-width:0px;border-right-color:#eaeaea;border-right-style:solid;border-right-width:0px;border-top-color:#eaeaea;border-top-style:solid;border-top-width:0px;color:white;font-family:Arial;font-size:16px;font-weight:bold;" />
<MonthStyle CssText="font-size: 11px; font-family: verdana;" />
<CalendarStyle CssText="background-color:black;border-bottom-color:#e0e0e0;border-bottom-style:solid;border-bottom-width:0px;border-left-color:#e0e0e0;border-left-style:solid;border-left-width:0px;border-right-color:#e0e0e0;border-right-style:solid;border-right-width:0px;border-top-color:#e0e0e0;border-top-style:solid;border-top-width:0px;cursor:hand;font-family:Arial;font-size:16px;" />
<DayHoverStyle CssText="background-color:black;border-bottom-color:#eaeaea;border-bottom-style:solid;border-bottom-width:0px;border-left-color:#eaeaea;border-left-style:solid;border-left-width:0px;border-right-color:#eaeaea;border-right-style:solid;border-right-width:0px;border-top-color:#eaeaea;border-top-style:solid;border-top-width:0px;color:white;font-family:Arial;font-size:16px;font-weight:bold;" />
<OtherMonthDayStyle CssText="color:#4a4a4a;font-family:Arial;font-size:16px;" />
<TitleStyle CssText="background-color:black;border-bottom-color:#cfd9e3;border-bottom-style:solid;border-bottom-width:1px;color:#f97a02;font-family:Arial;font-size:14px;font-weight:bold;padding-bottom:3px;padding-left:3px;padding-right:3px;padding-top:3px;" />
<DayHeaderStyle CssText="color:#d2d2d2;font-family:Arial;font-size:16px;font-weight:bold;height:17px;" />
</eo:Calendar>
Code: Visual Basic.NET
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
With Calendar1.SelectedDates
.Add("12/25/2007")
.Add("12/24/2007")
.Add("12/31/2007")
.Add("1/8/2008")
End With
End If
End Sub
Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
Response.Write(Calendar1.SelectedDate)
End Sub