-
19 Apr 2012 1:35 PM #1
Answered: Align a list on the bottom ?
Answered: Align a list on the bottom ?
Hi guys,
I'm trying to align a list (Ext.List) to the bottom of the panel.
Is that possible ?
I tried with a vbox align/pack, no results...
Thanks a lot !Code:layout:{ type:'vbox', align:'end', pack:'end' },
-
Best Answer Posted by mitchellsimoens
This makes the list be on the bottom:
Code:new Ext.Container({ fullscreen : true, layout : { type : 'vbox', pack : 'end' }, items : [ { xtype : 'list', itemTpl : '{text}', height : 200, store : { fields : [ 'text' ], data : [ { text : 'One' } ] } } ] });
-
20 Apr 2012 6:30 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,666
- Vote Rating
- 435
- Answers
- 3109
This makes the list be on the bottom:
Code:new Ext.Container({ fullscreen : true, layout : { type : 'vbox', pack : 'end' }, items : [ { xtype : 'list', itemTpl : '{text}', height : 200, store : { fields : [ 'text' ], data : [ { text : 'One' } ] } } ] });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.
-
2 May 2012 2:21 AM #3
Just a comment.
When this item (layout : pack end...) is situated in a card layoud (in my case, the first card) it breaks all the cards inside his parent.
An idea ? or bug to raise ?
-
2 May 2012 2:48 AM #4
Just found the issue.
Was a problem of container in the setActiveItem.


Reply With Quote