1

Closed

bug when dragging time panel with february label

description

Hi,
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 3:53 PM by CoderForRent
Yes, that is the problem. Looks like it fixed it to me.

comments

samuelgonnet wrote Jan 3, 2011 at 3: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));
                break;
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 3:53 PM

wrote Feb 14, 2013 at 7:29 PM

wrote May 16, 2013 at 9:43 AM