Threaded View
-
6 Dec 2012 6:02 AM #1
Answered: Container on top of a list
Answered: Container on top of a list
Hi !
I'm using Sencha Architect and have just upgraded to ST 2.1.
What I want to do
Inside a fullscreen Panel, I want to add 2 containers on the top of a list and have the whole parent Panel vertically scrollable.
In ST 2.0.1 I managed to get this behavior by turning the list scrollable attribute to false and made the parent panel vertically scrollable.
It doesn't work anymore in ST 2.1 :-(
Is there a way to get this layout working ?
mockup.png
-
Best Answer Posted by hadukiCode:
Ext.create('Ext.List', { fullscreen: true, itemTpl: '{title}', items:[{ xtype:'container', scrollDock:'top', height:50, html:'another container' },{ xtype:'container', scrollDock:'top', height:100, html:'a container' }], data: [ { title: 'Item 1' }, { title: 'Item 2' }, { title: 'Item 3' }, { title: 'Item 4' } ] });


Reply With Quote