That works, thanks. (I used stage.height though)
I'd have used Capabilities.screenResolutionY but it takes the PC screen resolution not the emulator's one. (it's a mobile app)
Any idea why using "this" doesn't give me the height of the View?
Unfortunately haven't work with mobile apps since last year, the last one was actually a flash app accessed through browser so I have no idea why the capabilities does not update to the emulator resolution.
I think that's a known bug, so no problem there.
What I wanted to know was why "this" inside a View refers to, because I don't think it refers to the View.
stage.height doesn't work on scaled DPI applications, sorry.
It's probably because Flex scales this: something=stage.height to match the DPI ratio between applicationDPI and device DPI.
The hack I'm using now is something=this.height+FlexGlobals.topLevelApplication.actionBar.height;
Which looks awful...
1 person found this helpful
How about the Application height is that accurate?
Id it proves so you could reference the parent and get its height, presumably the parent of the view is the application itself.
This works: FlexGlobals.topLevelApplication.height
But I don't like the look of it. There must be a better way of doing this for a Mobile App.
Still, much better than the hack I was using before this.