Gets the bounding rect of this control.
Namespace: MindFusion.CommonFile: Control.js
get rect() {}
Rect. The bounding rect.
The following code checks if the rect of a Menu instance is wider than 100:
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}
Control MembersControl ClassMindFusion.Common Namespace