WebSquare.style Package
Type
- engine
Property Summary
Event Summary
Method Summary
- getSize( Element , sizeName )
- Gets the size of the component.
- setSize( element , width , heigth )
- Sets the size of the element.
Property Detail
Event Detail
Method Detail
- getSize( Element , sizeName )
-
Gets the size of the component.
Parameter name type required description Element Element Y Component to get the size sizeName String Y Size types
height : element.clientHeight innerHeight : element.clientHeight + padding outerHeight : element.clientHeight + padding + border outerMarginHeight : element.clientHeight + padding + border + margin width : element.clientWidth innerWidth : element.clientWidth + padding outerWidth : element.clientWidth + padding + border outerMarginWidth : element.clientWidth + padding + border + margin Return type description Number Size of the component - setSize( element , width , heigth )
-
Sets the size of the element.
Parameter name type required description element Element Y Component to get the size width Integer Y Width of the component to set height Integer Y Height of the component to set