damiengarbarino / dojo-calendar

Calendar widget for Dojo 1.8+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem setting the start time of day at initialization

libinjose opened this issue · comments

I am trying to set startTimeOfDay property of ColumnView. I am using internet explorer 8. The property doesnt get set.

calendar = new Calendar({

        startTimeAttr: "begin",
        endTimeAttr: "end",

        cssClassFunc: function(item){
        return item.calendar;
        },
           store: new Observable(new Memory({data: daatArray})),
           dateInterval: "day",
           style: "border:1px solid grey;position:relative;width:88%;height:88%",
           columnViewProps:{minHours:0,maxHours:24}

    }, "day1");

calendar.columnView.set("startTimeOfDay", {hours:9, duration:1000});

I want the calendar to be defaulted to 8AM while it loads. It should have 12AM to 11.59PM, but while loading the scrollbar should be at 8AM.

Another issue with calendar week view and day view.

I have a calendar which have month view,week view and day view. When i try to scroll in week or day view, the scroll resets to the top. This happens when I scroll by dragging the scroll bar using mouse. But when i scroll using the scroll in mouse, this issue does not occur. Please provide your inputs on why this occurs.

Please advise on these issues.

Hi,
First of all, please prefer the dojo mailing list for questions: http://dojo-toolkit.33424.n3.nabble.com
Secondly, issues must be separated to handle them properly.

On master branch, setting the startTimeOfDay in column view properties is working properly.

columnViewProps: {
    startTimeOfDay: {hours: 8, minutes:0},
    minHours: 0,
    maxHours: 24
}

Concerning your second issue I don't reproduce on master using the calendar.html sample on IE9 with IE8 simulation (sorry I don't have an Win XP machine anymore for a long time...).
So it may depend on your application code or on another version of the calendar or real IE8 etc....
So please tell me if you are reproducing with master branch calendar.html sample.

Regards,

Damien

Second issue is happening if the day and week view are within portlet. Day view and week view are two different instance of calendar put together inside a portlet.
Please view details in http://dojo-toolkit.33424.n3.nabble.com/To-set-startTimeOfDay-to-Calendar-td4002767.html#a4002768.
In the above link, i have code for day view, similarly week view is also used

I have the code in JSFiddle- jsfiddle.net/libinjose/N4YCw/5. I have edited CalendarBase.js,PortletDialogSettings.js- jsfiddle.net/libinjose/VkQUH. Added new DayCalendar.js which uses DayCalendar.html. Similarly for week and month view. These can be found in the second JSFiddle.
First issue and second issue happens with these codes.

Cannot reproduce, reproducing sample far too complex. Closing