Opened 9 years ago
Closed 9 years ago
#14015 closed defect (fixed)
Calendar: "jumpy" with disabled dates
Reported by: | ben hockey | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Dijit - LnF | Version: | 1.7.0b1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
to see this issue, look at test_Calendar.html and type the following in the console
cal = dijit.byId('calendar1'); cal.isDisabledDate = function (date) { return date < new Date() || date.getDay() === 3; }; cal._populateGrid();
this disables all dates before today and any wednesday. you'll see the calendar jump when you call cal._populateGrid();
. since this is not likely to happen normally, this may be excusable.
however, once you've done the above, if you go forward a month and then back a month, you'll see the calendar jump as you navigate between months. is there a way to stop this jumping?
this appears as far back as dojo 1.5.0 (i didn't go further) so it's nothing new but thought it might be worth looking at.
Change History (3)
comment:1 Changed 9 years ago by
Summary: | Calendar "jumpy" with disabled dates → Calendar: "jumpy" with disabled dates |
---|
comment:2 Changed 9 years ago by
Milestone: | tbd → 1.7 |
---|---|
Status: | new → assigned |
Type: | enhancement → defect |
Note: See
TracTickets for help on using
tickets.
I do see the jumpiness on FF and Safari, although it works on IE.
It happens particularly on the line:
when it's changing the class from
to
But not sure why that change makes it temporarily jump; it shouldn't, yet it does, on both FF and safari.
The particular CSS that causes the jump is when the td > span's style is changed from
to