AnsweredAssumed Answered

Layout resize is calculated wrong in WebDirect when Toolbar is hidden

Question asked by TonyMiller on Jul 8, 2015
Latest reply on May 9, 2017 by TSGal

Summary

Layout resize is calculated wrong in WebDirect when Toolbar is hidden

Product

FileMaker Server

Version

14

Operating system version

Windows 7

Description of the issue

In Web Direct, a layout set to stretch only stretches vertically properly if the toolbar is shown. It appears that the stretch calculations do not account for the fact that the toolbar is still there and uses the same vertical space even though there are no buttons on the toolbar. So, if the layout is shown with toolbar hidden, the web content is longer than the window allows, causing the browser to display scroll bars. However, if the same layout is shown with toolbars, it is resized properly.

Steps to reproduce the problem

Create a layout with objects set to stretch, put some buttons in the footer. Make sure the layout is smaller than the screen it will be displayed on.
Create a script to take you to that layout, hide toolbars, and adjust to fit. (Think of the common technique to use a layout as a custom dialog box)
Create another script that does exactly the same, but shows toolbars.

Expected result

Layout contents are resized properly to fill the browser window, but not overfill it, so no browser scroll bars are displayed.

Actual result

The vertically resized items are larger than the window by about the same size of the toolbar. The browser shows both scrollbars because the content is too long to display and the addition of the vertical scrollbar causes it to be too wide as well. Buttons at the bottom of the screen shift off the viewable screen.

Configuration information

Have tested on Chrome and iPad Safari.

Outcomes