Errors in Day and Week View with Full Day Events

Ask for help related to our Calendar 2.x version
Post Reply
User avatar
b.wust
Premium Member
Premium Member
Posts: 70
Joined: Fri Mar 11, 2011 12:37 pm

Errors in Day and Week View with Full Day Events

Post by b.wust »

Hi,

we discovered 2 issues with Day and Week View in Calendar.

It is easy to reproduce, just take the Kitchen Sink - Bryntum Releases Example and Event Listener beforeventresize. Also add tooltipTpl for the day and week view.

Here is the changed MainPanel.js to reproduce this issues:

Code: Select all

Ext.define('Cal.examples.bryntumreleases.view.MainPanel', {
    extend   : 'Cal.panel.Calendar',
    alias    : 'widget.bryntumreleases-mainpanel',
    requires : [
        'Cal.examples.bryntumreleases.store.Event',
        'Cal.examples.bryntumreleases.store.Resource'
    ],
    title    : 'Bryntum Releases',
    // the date is the last time the data to releases.json was copied
    date     : new Date(2018, 7, 10),

    eventStore    : 'event',
    resourceStore : 'resource',

    // show the resource filter
    resourceFilter : {
        dock : 'right'
    },

    listeners: {
        beforeeventresize(view, record, e, eOpts) {
	    console.log('beforeeventresize');
    	    return false;
    	},
    },

    mode : 'agenda',

    modes : {
    	day: {
    		view: {
			tooltipTpl: new Ext.XTemplate('<span class="sch-event-header"><div class="sch-event-footer">{Name}</div>'),
    		}
    	}, 
    	week: {
    		view: {
			tooltipTpl: new Ext.XTemplate('<span class="sch-event-header"><div class="sch-event-footer">{Name}</div>'),
    		}
    	}, 
        month : {
            view : {
                minEventsPerCell : 2
            }
        }
    }

});
When you go now to week or day view and create 2 Events (one normal and one FullDay) you can reproduce the Errors (see attached Pictures).
bug_bryntum_1.png
bug_bryntum_1.png (64.86 KiB) Viewed 1880 times
bug_bryntum_2.png
bug_bryntum_2.png (61.04 KiB) Viewed 1880 times
Is there a way this get fixed soon or do i something wrong to get Tooltip and Event beforeventresize working ?

User avatar
mats
Core Developer
Core Developer
Posts: 16563
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Errors in Day and Week View with Full Day Events

Post by mats »

Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

Post Reply