Results 1 to 5 of 5

Thread: Scrollable container content disappear

    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
      0  

    Default Scrollable container content disappear

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

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1382
      0  

    Default

    Test case and what ST 2.x.x version?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    38
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Vote Rating
    1382
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2011
    Posts
    38
    Vote Rating
    0
      0  

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •