window height is undefined
Hi,
I'm trying to access the height of a window through the property "height". I got the window from Ti.UI.currentWindow . I don't think that it's supposed to be undefined or is it? Anybody experiencing the same? My SDK version is 1.2.1.
Greetings…
3 Answers
-
Ti.UI.currentWindow.size.height
and
Ti.UI.currentWindow.size.width
should both work. -
i'm not exactly sure, but i think for all kinds of views there is a property "size", which consists of x and y, that holds the width and height of the element
-
Yeah, I figured this out by now too. Thanks for your help though….