Opened 6 years ago

Last modified 2 years ago

#16987 assigned defect

dojox.calendar.Calendar, cannot declare a '1-col' columnView from 'endDate' and 'startDate' data-dojo-props

Reported by: Claude Guyomard Owned by: dg
Priority: undecided Milestone: 1.15
Component: DojoX Widgets Version: 1.8.3
Keywords: Cc:
Blocked By: Blocking:

Description

Hello,

Currently the dojox.calendar.Calendar cannot be configured with startDate and endDate properties such that it results in one-column columnView.

In the following code, endDate == startDate. We can reasonably expect that the columnView displays only one column.

<div data-dojo-id="calendar"

data-dojo-type="dojox.calendar.Calendar" data-dojo-props="startDate: new Date(2013,0,1), endDate: new Date(2013,0,1)"></div>

But the columnView displays 2 columns.

I found that dojox.calendar.CalendarBase? increments the "endDate" property twice (instead of once): [1] at line 379 _validateProperties(), [2] at line 499 computeTimeInterval()

Hope that it will help.

Regards,

Claude Guyomard

Change History (2)

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.12
Owner: changed from dante to dg
Status: newassigned

comment:2 Changed 2 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.