-
5 Jan 2011 11:53 PM #1
hbox layout and align strech
hbox layout and align strech
Hi;
It seems like using a strech property on with hbox layout does not strech the items vertically as it is supposed to. (using v1.0.1). note that if you just change the layout type of the root container in the code to 'vbox' the items strech to fill the container like they are supposed to.
can someone please take a quick look to see what I am missing?
simple code:
Code:Ext.setup({ icon: 'icon.png', tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', glossOnIcon: false, onReady: function() { var root = new Ext.Panel({ fullscreen: true, style: 'background-color:green;', layout:{ type:'hbox', align: 'strech' }, defaults:{flex:'1'}, items: [ { xtype: 'panel', html: 'left', style: 'background-color:red;', }, { xtype: 'panel', html: 'right', style: 'background-color:orange;', } ] }); } });
-
10 Jan 2011 10:53 PM #2
bumped;
cant get past this simple issue.
the API for hbox layout states:
yet the items do not strech vertically to fill it - they just strech for the height needed to display the items html.stretch : Components are stretched vertically to fill the container.
ahy help would be great.
thanks
-
10 Jan 2011 10:58 PM #3
Code:align: 'stretch'
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
10 Jan 2011 11:02 PM #4
F@#$ me...
thanks Evant, will try to post more meaningfull stuff next time
-
6 Dec 2012 5:11 AM #5
..."the items do not stretch vertically to fill it"... But if I need vise versa?(need to fill all spases)
Similar Threads
-
Align in HBOX panel.
By anpegar in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 23 Dec 2010, 4:29 AM -
Align items in layout HBOX
By aperez in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 6 Aug 2010, 3:17 AM -
[3.0 RC3]Issue with HBox layout and Align Middle
By robertoroberto in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 6 Jul 2009, 12:43 AM -
How to strech an TextArea to fit a Tab?
By franzisk in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 26 May 2007, 2:07 AM


Reply With Quote