PDA

View Full Version : Carousel didn't work with 0.92 version



dbottillo
28 Jul 2010, 1:51 AM
I have update my sencha library to 0.92 but now carousel didn't work!

if i try this simple code:

Ext.setup({
icon: 'assets/images/icon.png',
glossOnIcon: true,
onReady: function(){
new Ext.Carousel({
defaults: { cls: 'card' },
width: 320,
height: 180,
items: [{
html: '<img src="data/photo/31.jpg" class="imgPortrait" />'
}, {
title: 'Tab 2',
html: '<img src="data/photo/32.jpg" class="imgPortrait" />'
}, {
title: 'Tab 3',
html: '<img src="data/photo/34.jpg"class="imgPortrait" />'
}]
}).show();
}
});

display the first image but don't move to second
but if i put " direction: 'vertical' " it works!
what is change for direction type horizontal?

Daniele

evant
28 Jul 2010, 2:04 AM
Works fine for me.

dbottillo
28 Jul 2010, 2:06 AM
i try with chrome, firefox and nexus one's browser but none of this works!

evant
28 Jul 2010, 2:22 AM
Do some debugging. Turn the debugger on in Chrome, see if it throws any errors.

zhailulu
28 Jul 2010, 2:27 AM
glossOnIcon: false,
try it

zhailulu
28 Jul 2010, 2:27 AM
glossOnIcon: false,

dbottillo
28 Jul 2010, 2:47 AM
ok after thousand try i find the problem
chrome didn't refresh ext-touch.css so it was using the old css...