0 Replies Latest reply on Sep 3, 2013 10:11 AM by jbante

    Tip for Get ( WindowContentHeight ) on iPhone

    jbante

      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 )

      )