MindFusion.Charting for JavaScript Programmer's Guide
Control.rect Property
See Also
 






Gets the bounding rect of this control.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

get rect() {}

 Property Value

Rect. The bounding rect.

 Example

The following code checks if the rect of a Menu instance is wider than 100:

JavaScript  Copy Code

menu.theme = sender.theme;
menu.left = ui.Unit.pixel(sender.bounds.x + args.item.bounds.x);
menu.top = ui.Unit.pixel(sender.bounds.y + args.item.bounds.height);

if(menu.rect.width > 100)
{
 //do something
}

 See Also

Control Members
Control Class
MindFusion.Common Namespace