Mozilla XUL Element and Script Reference

Contents  Quick Reference

Splitter

An element which should appear before or after an element inside a container. When the splitter is dragged, the sibling elements of the splitter are resized. When the grippy on the splitter is clicked, one sibling element of the splitter is collapsed.

Attributes:

Attributes inherited from XUL Element


align

Determines the horizontal alignment of the children of the splitter.

autostretch

In the splitter is placed inside a horizontally oriented box, autostretch determines whether the splitter stretches vertically to fit the given space. For vertically oriented boxes, determines whether the splitter stretches horizontally to fit the given space. Stetching in the opoosite direction is controlled with the flex attribute.

collapse

Determines which side of the splitter is collapsed when its grippy is clicked. If this attribute is not specified, the splitter will not cause a collapse.

debug

If true, extra borders are drawn around the element and all its descendants. This can be used to determine orientation and where flexible elements are. If debug mode is enabled for a box, horizontal oriented boxes are displayed with a blue border and vertical boxes are displayed with a red border. The border above the element will be straight for non-flexible elements and wavy for flexible elements.

flex

Indicates the flexibility of the splitter. Flexible elements grow and shrink to fit their given space. The actual value is not relevant unless there are other flexible elements with-in the same container. Elements with larger flex values will grow more than elements with lower flex values, at the ratio determined by the two elements.

height

The height of the splitter in pixels. It is recommended to use the CSS height property instead.

left

For elements placed within a bulletinboard, specifies the position of the left edge of the splitter.

orient

Used to specify whether the children of the splitter element are oriented horizontally or vertically.

resizeafter

This attribute indicates which element to the right or below the splitter should be resized when the splitter is repositioned.

resizebefore

This attribute indicates which element to the left or above the splitter should be resized when the splitter is repositioned.

top

For elements placed within a bulletinboard, specifies the position of the top edge of the splitter.

valign

Determines the vertical alignment of the children of the splitter.

width

The width of the splitter in pixels. It is recommended to use the CSS width property instead.