Maintains the size of a div element in Internet Explorer. This is a workaround for the right and bottom style being ignored in IE.
If you need a div to cover the scrollwidth and -height of a document, then you can use this class as follows:
var resizer = new mxDivResizer(background);
resizer.getDocumentHeight = function()
{
return document.body.scrollHeight;
}
resizer.getDocumentWidth = function()
{
return document.body.scrollWidth;
}
resizer.resize();
Summary
| mxDivResizer | Maintains the size of a div element in Internet Explorer. |
| Functions | |
| mxDivResizer | Constructs an object that maintains the size of a div element when the window is being resized. |
| resizeWidth | Boolean specifying if the width should be updated. |
| resizeHeight | Boolean specifying if the height should be updated. |
| handlingResize | Boolean specifying if the width should be updated. |
| resize | Updates the style of the DIV after the window has been resized. |
| getDocumentWidth | Hook for subclassers to return the width of the document (without scrollbars). |
| getDocumentHeight | Hook for subclassers to return the height of the document (without scrollbars). |