MindFusion.Charting for JavaScript Programmer's Guide
DomUtils.getBounds Method
See Also
 






Gets the bounds of the specified element.

Namespace: MindFusion.Controls
File: DomUtils.js

 Syntax

JavaScript  Copy Code

function getBounds (element, [parent, [includeScroll]])

 Parameters

element

Type: HTMLElement
HTMLElement. The element to check.

parent
Optional.

Type: HTMLElement
HTMLElement. The parent of the element. If supplied, the returned bounds will be relative to the parent element bounds.

includeScroll
Optional.

Type: Boolean
Boolean. For internal use.

 Return Value

Type: Rect
Rect. The bounding rectangle.

 See Also

DomUtils Members
DomUtils Class
MindFusion.Controls Namespace