
| Type | Component |
| Owner | wax |
| Dependencies | wax.Element, wax |
| Base | wax.Element |
| Element tag | div |
An abstract component, implemented by wax.VBox and wax.HBox. Items placed inside a box have their size and position dinamically changed according to their wax.Element.flexibility. Boxes are very useful to design your applications layout.
| Inherited from wax.Element: | flex, contextMenu, tooltip, disabled, draggable, display |
The space (in pixels) between elements inside the box.
| Inherited from wax.Element: | getContainer, add, remove, pack, empty, raise, hangsFrom, getDocX, getDocY, getMouseX, getMouseY, acceptDrop, drag, getDragElem |
Returns the box size (in pixels).
Returns the size of the given item (in pixels).
| child | element | One of the items inside the box. |
| child | element | The child to pack. |
| pos | element | The new position of the child, in pixels. |
| size | number | The new size of the child, in pixels. If set to -1, the element's size is not changed. |