Search code examples
titaniumappcelerator-titanium

Titanium - Get height of current window


Is it possible to get the height of the current window as pixel value? Or alternatively, the screen height as pixel value?


Solution

  • For window height you can use Ti.Platform.displayCaps.platformHeight You can also try method view.getRect().height or view.toImage().height to get the view height.

    hope this will help you.