Results 1 to 5 of 5

Thread: Scrollable container content disappear

Hybrid View

Previous Post Previous Post   Next Post Next Post
    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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Test case and what ST 2.x.x version?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •