Layout a bunch of child dom nodes within a parent dom node
Parameter | Type | Description |
---|---|---|
container | DomNode | parent node |
dim | Object | {l, t, w, h} object specifying dimensions of container into which to place children |
children | Array | a list of children |
changedRegionId | String |
Optional If specified, the slider for the region with the specified id has been dragged, and thus the region's height or width should be adjusted according to changedRegionSize |
changedRegionSize | Number |
Optional See changedRegionId. |
Given the margin-box size of a node, return its content box size. Functions like domGeometry.contentBox() but is more reliable since it doesn't have to wait for the browser to compute sizes.
Parameter | Type | Description |
---|---|---|
node | DomNode | |
mb | Object |