bug when dragging time panel with february label


I remarked a bug we could not see before because it is only with the february month display. the bug is also present on the demonstration application.
When we drag the top time panel to change the displayed period, the graph and the panel are synchronized and the month names are displayed correctly but when the february label starts to override the january Label, month labels start bugging, we can see a part of january, february is displayed as march, march as April and the month separator is gapped from the place it should be.
Best regards

file attachments

Closed Feb 6, 2011 at 2:53 PM by CoderForRent
Yes, that is the problem. Looks like it fixed it to me.


samuelgonnet wrote Jan 3, 2011 at 2:12 PM

A possible solution could be in DateTimeManager class, AddType function, in the switch :
            case TimeUnits.Months:
                //increment *= DateTime.DaysInMonth(instance.Year, instance.Month);
                //result = instance.AddDays((int)(Math.Floor(increment)));
                result = instance.AddMonths(Convert.ToInt32(increment));
The commented addition was wrong when the 29,30 or 31 january appeared, the results were in March, not in february.

I apologize for my poor english but this code corrected the bug I encoutered.

Best regards

wrote Feb 6, 2011 at 2:53 PM

wrote Feb 14, 2013 at 6:29 PM

wrote May 16, 2013 at 8:43 AM