Hi all & thank you for this good Framework (i'm on 0.91),
I had test this Framework with a big Carousel squeleton project. But Safari on ipad crashe .
The memory manager of Safari on ipad is very bad at this time.
Then, the solution for a big project is to load content on 'cardswitch' event.
All work fine, but i have a lil pb to acces in Carousel in carousel 'cardswitch' event.
A simple code example :
Code:
var carousel;
var carousel3;
function loadPageContent (pageH,pageV) {
...
}
Ext.override(Ext.Container, {
getIndexOfActiveItem : function() {
return this.layout.activeItem ? this.items
.indexOf(this.layout.activeItem) : -1;
}
});
Ext.setup( {
addMetaTags : true,
tabletStartupScreen : 'tablet_startup.png',
phoneStartupScreen : 'phone_startup.png',
icon : 'icon.png',
glossOnIcon : false,
onReady : function() {
carousel3 = new Ext.Carousel( {
indicator : false,
direction : 'vertical',
items : [ {contentEl : 'page3'}, {contentEl : 'page3a'} ]
});
carousel = new Ext.Carousel( {
indicator : false,
direction : 'horizontal',
items : [ {contentEl : 'page1'}, {contentEl : 'page2'}, carousel3, {contentEl : 'page4'}]
});
carousel.on('cardswitch', function() {
loadPageContent(carousel.getIndexOfActiveItem());
});
carousel3.on('cardswitch', function() {
loadPageContent(carousel.getIndexOfActiveItem(),carousel3.getIndexOfActiveItem());
});
.....
carousel.on work fine, carousel3 to but no loadPageContent on carousel3 'cardswitch' have you an idea ?
Thx for your answer.