1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    13
    Vote Rating
    0
    disbj is on a distinguished road

      0  

    Default 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:

    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'
         } ]
      } ]
    });
    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.

    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.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,398
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    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
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1