SwarmOnline / Ext.ux.TouchCalendar

Sencha Touch Calendar component
113 stars 47 forks source link

TouchCalendarView day mode requires calling setMode('day') #3

Closed gabegorelick closed 11 years ago

gabegorelick commented 12 years ago

In the following code, the calendar is not scrollable (there may be other layout issues, but that is the one I noticed first):

Ext.setup({
    onReady: function() {
        calendarView = new Ext.ux.TouchCalendarView({
            mode: 'day'
        }); 
        var calendarPanel = new Ext.Panel({
            fullscreen: true,
            layout: 'fit',
            items: [calendarView]
        });
    }
});

Adding a call to setMode('day') after the panel is created makes it work.