Ah! You need to set the screenmode property to Actual Size:
From the Help window:
How will the form be displayed?
Full Screen using full width and height. Actual Size of width, height, left and top. Use for Modal forms. Center in screen, using width and height. Zoom width and height to screen size and center horizontally. Max of 2. noStyle Only user styling applied to form.
If i set the screen mode to Actual Size, the app screen doesn’t fit the phone screen size properly, and it’s still black below the normal screen size after scrolling down.
This problem is only visible on a device, not from browser.
This has been an issue for a very long time. I overcome this with the following:
enableAppScroll = False
Form1 screenMode: Full Screen
Project Properties > viewportFit: cover
For each Form I ended up using a container and put everything inside that and set the Container,
Position Left: 0px, Width 100%, Top:40px (my header is 40px).
In the Style properties of the Container: overflow-y:scroll;
Function Form1_onshow()
Container1.height = window.innerHeight - Header1.height;
End function
Function Form1_onresize()
Form1_onShow();
End function
If the issue still persists, set the background-color of the container to the colour you require.