Get window size

I have a popup that contains several hidden fields that might be made visible depending on the user input. As a result, I needed to be get the current height of the popup so that it can be expanded. Currently there is no method of getting the current height/width of a popup window. It would be nice if there was a method like getSize.


PS - I solved this by accessing the popup component and using $height/$width.

Hello Kris,

$height and $width are public properties (they are not minified in the touchui.js). And using them is the right approach to get view sizes. All components (views) get them. Also there is $view property - html container where a component is rendered.

These properties are not documented good enough - we’ll fill this gap.