dojox/app/utils/layout (version 1.10)

Method Summary

  • layoutChildren(container,dim,children,changedRegionId,changedRegionSize) Layout a bunch of child dom nodes within a parent dom node
  • marginBox2contentBox(node,mb) Given the margin-box size of a node, return its content box size.

Methods

layoutChildren(container,dim,children,changedRegionId,changedRegionSize)

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.

marginBox2contentBox(node,mb)

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
Returns:object
Error in the documentation? Can’t find what you are looking for? Let us know!