3 Replies Latest reply on May 9, 2017 6:19 AM by TSGal

    Adjust Window [Resize to Fit] positions window off the screen

    DecentGroup

      Product and version: FileMaker Pro Advanced 14.0.5

       

       

      OS and version: Mac OS X 10.10.5

       

       

      Hardware: MacBookPro11,4; 2.2 GHz Intel Core i7, 16 GB RAM; Retina LCD display at 2880 x 1800; secondary display (extended not mirrored) at 1920 x 1080; the screens are arranged in system preferences such that the external display is the primary one, and the displays aligned on their top edges

       

       

      Description: Adjust Window [Resize to Fit] positions window off the screen on the smaller of the two displays

       

       

      How to replicate:

       

       

      1. Prepare a file:

        • create new file

        • adjust layout height to be greater than the height of both screens

        • create a script with just a “resize to fit” step

       

       

      2. The script behaves as expected on the larger display:

        • position the window anywhere on the larger display

        • run the script

        • window resizes to the full height available under the menubar

        • window is repositioned to just under the menubar

        • Get(WindowDesktopHeight) returns 1057

        • Get(WindowHeight) returns 1053

        • Get(WindowTop) returns 0

       

       

      3. But it does not behave as expected on the smaller display:

        • position the window anywhere on the smaller display

        • run the script

        • window resizes to full height available under the menubar

        • TOP OF WINDOW IS MOVED TO ABOVE THE MENUBAR, DENYING ACCESS TO THE TITLEBAR, STATUS AREA, CLOSE BUTTON ETC

        • Get(WindowDesktopHeight) returns 1057

        • Get(WindowHeight) returns 877

        • Get(WindowTop) returns -180

        • This should not occur as the top edges of the displays are aligned in System Preferences (see screenshot attached)

       

       

      Workaround: after the window has been badly positioned, use move/resize window to set WindowTop to 0, or select ‘cascade’ or ‘tile’ from the window menu

       

       

       

       

       

       

      Let me know if you want a file, screenshots or a demo over TeamViewer/WebEx.