padding

Defines the amount of whitespace around a pane item.

Defines the amount of white space around a pane item. This is useful when putting a Pane around rows in a table, as it lets you minimize empty space between rows. Use this option in conjunction to rowpadding.

Syntax

<padding>number</padding>
Table 1. paddingSpecification parameters
Parameter Type Description
number integer The number of pixels if white space around the Pane item.

Valid settings are 0 - 3 inclusive.

Note: 3 pixels are required to draw a border around the Pane item.

Available In

pane

Example

This is an example of pane using padding set to 0.

<pane sid="PANE1">
         <xforms:group>
            <xforms:label></xforms:label>
         </xforms:group>
         <itemlocation>
            <x>10</x>
            <y>10</y>
         </itemlocation>
         <padding>0</padding>
      </pane>

Usage details

  1. The default value is 3.
  2. If the pane item has a label (XFDL or XForms generated) or a border then the padding option is ignored and the default is used.
  3. 1 pixel is applied to the inside of the pane matching the backgroundColor of the pane. 2 pixels beyond that are used as placeholders for the border when it is turned on and off. If there is no border than these 2 pixels are transparent.
  4. Does not affect white space around items inside the Pane item. If you need to reduce the white space of items in a table, use the rowpadding option.