-
26 Dec 2012 10:14 PM #1
Scrollable container content disappear
Scrollable container content disappear
Hi,
A viewport item, set scrollable: 'vertical', cause content disappear. Works on card layout.
-
27 Dec 2012 6:17 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
Test case and what ST 2.x.x version?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
27 Dec 2012 4:16 PM #3
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
-
28 Dec 2012 6:54 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,710
- Vote Rating
- 436
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Jan 2013 3:29 PM #5
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-
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote