dijit.layout.marginBox2contentBox
dojo.require("dijit.layout._LayoutWidget");
defined in dijit/layout/_LayoutWidget.js
Given the margin-box size of a node, return it's content box size. Functions like dojo.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 |