How to add padding inside of Panel with BorderLayout?

  1. #1

    How to add padding inside of Panel with BorderLayout?

    I have the following:

    ViewPort
    FitLayout
    Panel
    BorderLayout


    I want the Panel to have 10px of padding inside so that the BorderLayout doesn't sit flush with the panel edges. But it seems like the BorderStyle of the Panel does not affect the BorderLayout. For example, if I use: BorderStyle="padding: 10px", the BorderLayout is still flush with the Panel. Any help on this would be appreciated.
  2. #2

    RE: How to add padding inside of Panel with BorderLayout?

    Maybe setting BodyStyle="padding:10px;" would provide an alternative approach.*

    There's also the .Margins-* properties which can be adjusted to add extra padding around regions.*


    Example


    <North Margins-Bottom="10">

    The MarginsSummary property can set all four margins in one string.*


    Example


    <North MarginsSummary="0 0 10 0">

    The MarginsSummary value pattern is north-east-south-west.


    Hope this helps.




    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 0
    Last Post: Apr 19, 2012, 3:52 PM
  2. Replies: 10
    Last Post: Sep 22, 2010, 10:07 PM
  3. Replies: 1
    Last Post: Jun 08, 2010, 12:51 AM
  4. Replies: 0
    Last Post: May 27, 2009, 3:12 AM
  5. [CLOSED] How to adjust padding around panel inside portlet?
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2009, 3:30 PM

Posting Permissions