It may have something to do with the window the file first opens on. Do you get the same result if you close the file on a 4" device and then open it on a 3.5"? I suggest you try using Get ( ScreenHeight ) instead. You may have to combine this with Get ( WindowOrientation ) in case the user opens in landscape mode, in which case you would need to use Get ( ScreenWidth ) instead.
Thanks - I was testing this on a hosted file so I don't have to keep copying the file to an iPhone 4, iPhone 5 and iPad. I changed the test from Get ( WindowContentHeight ) to Get ( ScreenHeight ) and it appears to be working as expected now.
It was strange as Get ( WindowContentHeight ) was returning a value > than 480. I'll try it running locally on a device and see if I get different results.
It was strange as Get ( WindowContentHeight ) was returning a value > than 480
As I noted above, that may have been because that's the size of the window the file opened on. As I understand it, default behaviour is for a file to open on the layout it closed on, unless you specify a layout in the file options. Whichever it is, Get ( WindowContentHeight ) will return the result for the layout it is on, not the device it is on. Get ( ScreenHeight/Width ) would be device driven not layout driven.
In other words, WindowContentHeight may be larger than WindowHeight
when the window is scrollable.