aschoenfeld
25 Jan 2011, 4:06 AM
Hi,
I'm new to Sencha Touch, so maybe I'm just missing something basic ;)
I have a panel that contains a carousel and another panel:
...
rootPanel = new Ext.Panel({
fullscreen: true,
layout: {
type: 'card',
align: 'stretch'
},
items: [carousel, bigview],
...
The other panel looks like this:
bigview = new Ext.Panel({
title: 'Test',
scroll: 'both',
html:'<img src="./img/page1.jpg" />'
});
If I show the other panel with rootPanel.setActiveItem(1); it scrolls just fine.
The problem occurs if I change the html content like this:
bigview.body.update('<img src="./img/page2.jpg" />')
It will still switch to the other panel, but I can't scroll the image any more.
Using Sencha Touch 1.0.1a
Thanks :)
I'm new to Sencha Touch, so maybe I'm just missing something basic ;)
I have a panel that contains a carousel and another panel:
...
rootPanel = new Ext.Panel({
fullscreen: true,
layout: {
type: 'card',
align: 'stretch'
},
items: [carousel, bigview],
...
The other panel looks like this:
bigview = new Ext.Panel({
title: 'Test',
scroll: 'both',
html:'<img src="./img/page1.jpg" />'
});
If I show the other panel with rootPanel.setActiveItem(1); it scrolls just fine.
The problem occurs if I change the html content like this:
bigview.body.update('<img src="./img/page2.jpg" />')
It will still switch to the other panel, but I can't scroll the image any more.
Using Sencha Touch 1.0.1a
Thanks :)