Threaded View

  1. #1
    Sencha User biggbest's Avatar
    Join Date
    Jun 2011
    Location
    France
    Posts
    38
    Answers
    1
    Vote Rating
    5
    biggbest is on a distinguished road

      0  

    Default 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
    Attached Images

  2. Code:
    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' }
        ]
    });

Thread Participants: 1

Tags for this Thread