daveamos
7 Jul 2010, 8:33 PM
Hello! I have an odd problem with my carousel -- when I try to swipe it I can see the next picture coming on screen, but when I let go it snaps back to my original photo. I'm not sure what I'm doing wrong -- my code seems straightforward (below):
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var toolbar = new Ext.Toolbar({
dock: 'top',
items: [{
text: 'Back'
}]
});
var carousel2 = new Ext.Carousel({
indicator: true,
direction: 'vertical',
items: [{
title: 'Tab 1',
html: '<img src="images/image1.jpg" /><p>A sample caption</p>'
},
{
title: 'Tab 2',
html: '<img src="images/image2.jpg" />'
},
{
title: 'Tab 3',
html: '<img src="images/image3.jpg" />'
}]
});
var fixedimage = new Ext.Panel({
title: 'Fixed Image',
html: '<img src="images/image2.jpg" />'
});
var comparescreen = new Ext.Panel({
fullscreen: true,
dockedItems: [toolbar],
layout: 'hbox',
items: [carousel2,fixedimage]
});
}
});
Any help would be great! Thanks!
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function() {
var toolbar = new Ext.Toolbar({
dock: 'top',
items: [{
text: 'Back'
}]
});
var carousel2 = new Ext.Carousel({
indicator: true,
direction: 'vertical',
items: [{
title: 'Tab 1',
html: '<img src="images/image1.jpg" /><p>A sample caption</p>'
},
{
title: 'Tab 2',
html: '<img src="images/image2.jpg" />'
},
{
title: 'Tab 3',
html: '<img src="images/image3.jpg" />'
}]
});
var fixedimage = new Ext.Panel({
title: 'Fixed Image',
html: '<img src="images/image2.jpg" />'
});
var comparescreen = new Ext.Panel({
fullscreen: true,
dockedItems: [toolbar],
layout: 'hbox',
items: [carousel2,fixedimage]
});
}
});
Any help would be great! Thanks!