Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    NguyenT is on a distinguished road

      0  

    Default Layout card with several items

    Layout card with several items


    i'm facing with this problem:

    Code:
    {
                        xtype: 'container',
                        id: 'dateContainer',
                        layout: 'card',
                        flex: 2,
                        items: [
                            {
                                xtype: 'calendar',
                                id: 'monthView',
                                cls: 'monthView',
                            },
                            {   
                                xtype: 'container',
                                id: 'dayViewContainer',
                                layout: 'fit',
                                items: [
                                    {
                                        xtype: 'textfield',
                                        label: 'Names',
                                        name: 'name'
                                    },
                                    {
                                        xtype: 'list',
                                        flex: 2,
                                        ............................
                                    }
                                ]
                            }
    and my problem is the dayViewContainer can't show 2 textfield it just show the list?, thank you for your help.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,

    you can remove layout:'fit' ,
    layout:''fit' used only for one item
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    NguyenT is on a distinguished road

      0  

    Default


    okie, i just removed, but it don't work

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Posts
    83
    Vote Rating
    11
    Schildi will become famous soon enough

      0  

    Default


    You have to define a different layout instead
    Try
    Code:
    layout: 'vbox'
    or look at http://docs.sencha.com/touch/2-0/#!/guide/layouts

    Best regards,
    Schildi

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    NguyenT is on a distinguished road

      0  

    Default


    Thank you,

    But it's not work, i've tried a lot layout for this problem...

Thread Participants: 2