Functiondojo._setMarginBox

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

sets the size of the node's margin box and placement (left/top), irrespective of box model. Think of it as a passthrough to dojo._setBox that handles box-model vagaries for you.

Usage

function (/*DomNode*/ node, /*Number?*/ leftPx, /*Number?*/ topPx, /*Number?*/ widthPx, /*Number?*/ heightPx, /*Object*/ computedStyle) (view source)
parametertypedescription
nodeDomNode 
leftPxNumberOptional.
topPxNumberOptional.
widthPxNumberOptional.
heightPxNumberOptional.
computedStyleObject