<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxDivResizer"></a>mxDivResizer</h1><divclass=CBody><p>Maintains the size of a div element in Internet Explorer. This is a workaround for the right and bottom style being ignored in IE.</p><p>If you need a div to cover the scrollwidth and -height of a document, then you can use this class as follows:</p><blockquote><preclass="prettyprint">var resizer = new mxDivResizer(background);
resizer.getDocumentHeight = function()
{
return document.body.scrollHeight;
}
resizer.getDocumentWidth = function()
{
return document.body.scrollWidth;
}
resizer.resize();</pre></blockquote><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxDivResizer">mxDivResizer</a></td><tdclass=SDescription>Maintains the size of a div element in Internet Explorer. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxDivResizer.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxDivResizer.mxDivResizer"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxDivResizer</a></td><tdclass=SDescription>Constructs an object that maintains the size of a div element when the window is being resized. </td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxDivResizer.resizeWidth">resizeWidth</a></td><tdclass=SDescription>Boolean specifying if the width should be updated.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxDivResizer.resizeHeight">resizeHeight</a></td><tdclass=SDescription>Boolean specifying if the height should be updated.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxDivResizer.handlingResize">handlingResize</a></td><tdclass=SDescription>Boolean specifying if the width should be updated.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxDivResizer.resize"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">resize</a></td><tdclass=SDescription>Updates the style of the DIV after the window has been resized.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxDivResizer.getDocumentWidth"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">getDocumentWidth</a></td><tdclass=SDescription>Hook for subclassers to return the width of the document (without scrollbars).</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxDivResizer.getDocumentHeight"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">getDocumentHeight</a></td><tdclass=SDescription>Hook for subclassers to return the height of the document (without scrollbars).</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.mxDivResizer"></a>mxDivResizer</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxDivResizer(</td><tdclass="PParameter prettyprint "nowrap>div,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>container</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs an object that maintains the size of a div element when the window is being resized. This is only required for Internet Explorer as it ignores the respective stylesheet information for DIV elements.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>div</td><tdclass=CDLDescription>Reference to the DOM node whose size should be maintained.</td></tr><tr><tdclass=CDLEntry>container</td><tdclass=CDLDescription>Optional Container that contains the div. Default is the window.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.resizeWidth"></a>resizeWidth</h3><divclass=CBody><p>Boolean specifying if the width should be updated.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.resizeHeight"></a>resizeHeight</h3><divclass=CBody><p>Boolean specifying if the height should be updated.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.handlingResize"></a>handlingResize</h3><divclass=CBody><p>Boolean specifying if the width should be updated.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.resize"></a>resize</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxDivResizer.prototype.resize = function()</td></tr></table></blockquote><p>Updates the style of the DIV after the window has been resized.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.getDocumentWidth"></a>getDocumentWidth</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxDivResizer.prototype.getDocumentWidth = function()</td></tr></table></blockquote><p>Hook for subclassers to return the width of the document (without scrollbars).</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxDivResizer.getDocumentHeight"></a>getDocumentHeight</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxDivResizer.prototype.getDocumentHeight = function()</td></tr></table></blockquote><p>Hook for subclassers to return the height of the document (without scrollbars).</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxDivResizer(</td><tdclass="PParameter prettyprint "nowrap>div,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>container</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs an object that maintains the size of a div element when the window is being resized. </div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxDivResizer.prototype.resize = function()</td></tr></table></blockquote>Updates the style of the DIV after the window has been resized.</div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxDivResizer.prototype.getDocumentWidth = function()</td></tr></table></blockquote>Hook for subclassers to return the width of the document (without scrollbars).</div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxDivResizer.prototype.getDocumentHeight = function()</td></tr></table></blockquote>Hook for subclassers to return the height of the document (without scrollbars).</div></div><!--END_ND_TOOLTIPS-->