Discuss anything related to web development but no technical support questions


Post by Antarctica »

Hello Bryntum team,

in Scheduler 2.5.8, I had the following afterrender listener working on the SchedulerGrid:
			listeners:{
				afterrender:function(cmp) {
					cmp.scrollToDateCentered(today);
				}
			}
You can try for yourself that this does not work in Scheduler 4.0.0 beta 1. Just add this code snippet to your scrollTo example after line 134.

Is this a bug; if not, how would I achieve the same in Scheduler 4.0.0 beta 1?

Kind regards,

Alexander
Errors are human, but to really mess up, you need a computer.

Post by arcady »

If I put "debugger" in your listener I see that view actually does not look ready yet. So I tried to use "boxready" event instead and it worked for me:
            listeners: {
                boxready : function (cmp) {
                   cmp.scrollToDateCentered(today);
                }
            }
Not sure if this is our bug though. It more looks like sencha has changed the rendering/layouting mechanism in ext6.

Post Reply