Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    38
    Vote Rating
    0
    zehavibarak is on a distinguished road

      0  

    Default Scrollable container content disappear

    Scrollable container content disappear


    Hi,
    A viewport item, set scrollable: 'vertical', cause content disappear. Works on card layout.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,649
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Test case and what ST 2.x.x version?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    38
    Vote Rating
    0
    zehavibarak is on a distinguished road

      0  

    Default Testcase

    Testcase


    2.1.0
    Ext.define("App.view.Viewport", { extend: "Ext.Panel",
    config: {
    layout: {
    type: "hbox",
    align: "stratch"
    },
    items: [{ width: 300, items[{xtype: "Ext.List"}] },
    { scrollable: "vertical", items: [{xtype: "Ext.ToolBar"},{html: "!!!!!!!!!!!!!! !!!!!!!!!!!!"}], flex: 1}]
    }});

    !!!!!!!!!!!!!!!!! should have been visible

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,649
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You code is not very well formatted, not in CODE tags and not valid. The reason it's not valid is Ext.List and Ext.ToolBar are not valid xtypes and you will likely see errors in the console. Fixing your code in all 3 ways it works for me in ST 2.1.0:

    Code:
    Ext.define('App.view.Viewport', {
        extend : 'Ext.Panel',
        xtype  : 'app-viewport',
        
        config : {
            layout : {
                type  : 'hbox',
                align : 'stratch'
            },
            items  : [
                {
                    width : 300,
                    items : [
                        {
                            xtype : 'list'
                        }
                    ]
                },
                {
                    scrollable : 'vertical',
                    flex       : 1,
                    items      : [
                        {
                            xtype : 'toolbar'
                        },
                        {
                            html : '!!!!!!!!!!!!!! !!!!!!!!!!!!'
                        }
                    ]
                }
            ]
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    38
    Vote Rating
    0
    zehavibarak is on a distinguished road

      0  

    Default Resolved

    Resolved


    A second container in an mvc app is parent to anoth container which size is determined on the fly. Hence, the second container should be set as layout: {type: "hbox", align: "stretch"}
    The align stretch default may have been missing in 2.1.0, since this has worked with 2.0.1-

Thread Participants: 1