Gets the bounds of the specified element.
Namespace: MindFusion.Controls
File: DomUtils.js
JavaScript Copy Code |
---|
function getBounds (element, [parent, [includeScroll]]) |
Type: HTMLElement
HTMLElement. The element to check.
Type: HTMLElement
HTMLElement. The parent of the element. If supplied, the returned bounds will be relative to the parent element bounds.
Type: Boolean
Boolean. For internal use.
Type: Rect
Rect. The bounding rectangle.