-
8 Dec 2011 9:04 AM #1
possible regression: vbox layout, center align
possible regression: vbox layout, center align
The following code seems to work in Ext 4.0.7, but does not work in Ext 4.1-pr1:
Specifically, in 4.0.7 the A component is centered relative to the window and the X component. In 4.1-pr1 it is left aligned.Code:Ext.create('Ext.window.Window', { title: 'Hello', autoShow: true, items: [ { xtype: 'component', html: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' }, { xtype: 'container', layout: { type: 'vbox', align: 'center', autoSize: true }, items: [ { xtype: 'component', html: 'AAAAAAAA' } ] } ] });
A minor difference I noticed is that in Ext 4.1-pr1 autoSize no longer does anything, but I don't think that's relevant to my issue because autoSize was only needed in 4.0.7 to get the vbox to appear at all, whereas in 4.1 it appears without it, it's just that the alignment seems wrong.
-
9 Dec 2011 9:52 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 436
The layout engines have been rewritten and the beta is due out soon (no dates). Of course beta is more stable than a developer preview release so this should be checked when the beta comes out.
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.


Reply With Quote