Functiondojo._setBox

<script src="../../js/dojo.js"></script>
defined in dojo/_base/html.js

sets width/height/left/top in the current (native) box-model dimentions. Uses the unit passed in u.

Usage

function (/*DomNode*/ node, /*Number?*/ l, /*Number?*/ t, /*Number?*/ w, /*Number?*/ h, /*String?*/ u) (view source)
parametertypedescription
nodeDomNodeDOM Node reference. Id string not supported for performance reasons.
lNumberOptional. optional. left offset from parent.
tNumberOptional. optional. top offset from parent.
wNumberOptional. optional. width in current box model.
hNumberOptional. optional. width in current box model.
uStringOptional. optional. unit measure to use for other measures. Defaults to "px".