B Brian Dean Well-Known Member Licensed User Longtime User Mar 3, 2025 #1 In the Designer, how does AutoScaleAll work? I designed a layout, see below left, where the top of the bottom left (orange) panel is midway down the screen on a 1080x2340 device. This is where I want it to be and I think that I have anchored everything correctly. I expected that, on other devices, the panel would still occupy around 50% of the screen. However on a 1080x2400 device (not so very different) it occupies a much larger proportion. Here are the two screens side-by-side - . . . I had expected that, if I created a layout that filled the variant outline and I anchored panels top and bottom, AutoScaleAll would preserve the relative panel sizes. I am clearly missing something. If you can straighten me out I would be very grateful. I attach a project containing the layout file. Note that there are some script entries that might be relevant. Attachments Layout.zip Layout.zip 9.4 KB · Views: 372
In the Designer, how does AutoScaleAll work? I designed a layout, see below left, where the top of the bottom left (orange) panel is midway down the screen on a 1080x2340 device. This is where I want it to be and I think that I have anchored everything correctly. I expected that, on other devices, the panel would still occupy around 50% of the screen. However on a 1080x2400 device (not so very different) it occupies a much larger proportion. Here are the two screens side-by-side - . . . I had expected that, if I created a layout that filled the variant outline and I anchored panels top and bottom, AutoScaleAll would preserve the relative panel sizes. I am clearly missing something. If you can straighten me out I would be very grateful. I attach a project containing the layout file. Note that there are some script entries that might be relevant.
Erel B4X founder Staff member Licensed User Longtime User Mar 4, 2025 #2 Resolution without scale has no meaning. If you want the panel to fill the lower half of the screen then set it with the designer script: Code: Copy Panel1.SetTopAndBottom(50%y, 100%y) And create a separate layout with the panel inner layout and load it after loading the main layout. Upvote 0
Resolution without scale has no meaning. If you want the panel to fill the lower half of the screen then set it with the designer script: Code: Copy Panel1.SetTopAndBottom(50%y, 100%y) And create a separate layout with the panel inner layout and load it after loading the main layout.