1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    53
    Vote Rating
    0
    Mic1 is on a distinguished road

      0  

    Default setting layout:{ padding: 5} ?

    setting layout:{ padding: 5} ?


    still think I am missing something basic. Trying to convert the 4.1 examples/layout/border app to an Architect 2 project. From the example:

    var viewport = Ext.create('Ext.Viewport', {
    layout: {
    type: 'border',
    padding: 5
    }, ....

    In A2 the layout is set from a dropdown e.g. 'border' but there seems no way to get to layout.padding. Docs say layout can be a string or an object. Tried getting into the project to fix it in there but changes do not seem to be reflected when project reopened. tia.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,200
    Vote Rating
    120
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Container level layout padding is a new configuration in 4.1. You'll notice that its not in the Ext 4.0.x docs.

    In the mean time you could also set the defaults configuration to padding: 5 and achieve the same result.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1