PDA

View Full Version : Carousel Problem in extjs4.1



vijayakumar84
7 Oct 2013, 7:26 AM
Hi
I have implemented carousel in extj4.1 using following link http://try.sencha.com/extjs/4.1.1/community/carouselcontainer/ .While using the below code my application screen get freeze.Can anybody tell what is problem how to fix it


if (me.ownerCt) {
me.relayEvents(me.ownerCt, ['resize'], 'owner');
me.on({
ownerresize: me.syncSizeToOwner
});

syncSizeToOwner: function () {
var me = this;
if (me.ownerCt) {
//me.setSize(me.ownerCt.el.getWidth() * me.items.items.length, me.ownerCt.el.getHeight());
me.setWidth(me.ownerCt.el.getWidth() * me.items.items.length);
me.setHeight( me.ownerCt.el.getHeight());

}
}

greg.barry
11 Oct 2013, 11:59 AM
I just tried using this with ExtJS 4.1.1 in Chrome and FireFox with no issues.

That said, there do appear to be some console.logs in the code, which can make IE cranky.

What browser are you using (please include specific version) when you experience this issue?

Thanks!
Greg