View attributes LrView node layout properties

These properties determine how the children are sized and placed with respect to the parent. They can be specified in all container and control nodes.

Numeric fill and place values are all percentages in the range [0..1].

When resizing for fill, no node is made smaller than its minimum size. Each child's fill size is first treated as a proportion of the total space desired; that is, 0.25 means the node wants to 25% of the parent's size. If a child node's fill needs cannot be met, it is given a percentage of the available extra space in the proportion to how much it asked for. For example, if three node ask for 0.2, 0.2 and 0.4 and there si not enough extra space, the nodes get 25%, 25% and 50% of the available extra space, respectively.

Place values determine how a node is positioned in any extra space within its parent node. The extra space available for placement is the space available after the fill properties have been considered. Space is allocated on a first-come first-served basis. If the first child has place_horizontal = 1, it consumes all of the extra horizontal space and there is none left for its siblings.

If you specify a minimum width or height for any node, it is excluded from automatic resizing in the given direction. If both width and height are specified, the minimum size for the node is not automatically calculated. If only one is specified, the minimum size is still calculated in the other direction.

Summary

Default fill value, if not otherwise specified.
The horizontal free space a node is sized to fill.
The vertical free space a node is sized to fill.
The minimum vertical size for this node in pixels.
The percentage of horizontal free space to place to the left of the node.
The percentage of horizontal free space to place above the node.
The minimum horizontal size for this node in pixels.

Properties

fill : (Read-Only)
Default fill value, if not otherwise specified. (number, [0..1])

First supported in version 1.3 of the Lightroom SDK.

fill_horizontal : (Read-Only)
The horizontal free space a node is sized to fill. (number, [0..1])

First supported in version 1.3 of the Lightroom SDK.

fill_vertical : (Read-Only)
The vertical free space a node is sized to fill. (number, [0..1])

First supported in version 1.3 of the Lightroom SDK.

height : (Read-Only)
The minimum vertical size for this node in pixels. (number)

First supported in version 1.3 of the Lightroom SDK.

place_horizontal : (Read-Only)
The percentage of horizontal free space to place to the left of the node. (number, [0..1])

First supported in version 1.3 of the Lightroom SDK.

place_vertical : (Read-Only)
The percentage of horizontal free space to place above the node. (number, [0..1])

First supported in version 1.3 of the Lightroom SDK.

width : (Read-Only)
The minimum horizontal size for this node in pixels. (number)

First supported in version 1.3 of the Lightroom SDK.