Results 1 to 2 of 2

Thread: setting layout:{ padding: 5} ?

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Vote Rating

    Default 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 User aconran's Avatar
    Join Date
    Mar 2007
    Vote Rating


    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts