Rect.fromControl (static method)

Creates rectangle equal to control position and size.

Syntax

var rect = Rect.fromControl( control );

Parameters

Parameter Description
control Reference to form control

Description

This method creates a rectangle with properties { left: control.style.left, top: control.style.left, width: control.style.width, height: control.style.height }

Example

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.