Jump to content

Tip for Get ( WindowContentHeight ) on iPhone


This topic is 3909 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I discovered this recently, and thought more folks might be interested to know: When calling the Get ( WindowContentHeight ) function in FileMaker Go for iPhone, subtract 31 to get the correct result. On desktop versions and FileMaker Go for iPad, Get ( WindowContentHeight ) does not include the status area or window title bar in the result; but FileMaker Go for iPhone does include the window title bar, which is 31 points tall. (For the particularly analytical, I'm seeing this in FileMaker Go for iPhone version 12.0.7, build date 2013-04-24.)

 
So a calculation to work across all desktop and iOS apps might look like this:
Let ( [
    ~app = Get ( ApplicationVersion ) ;
    ~deviceIsPhone =
        Left ( ~app ; 2 ) = "Go"
        and Left ( ~app ; 7 ) ≠ "Go_iPad"
] ;
    Get ( WindowContentHeight )
    - If ( ~deviceIsPhone ; 31 ; /* Else */ 0 )
)
  • Like 2
Link to comment
Share on other sites

This topic is 3909 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.