Anyone else notice that the slots for grid panels do not take up the proper screen space when there are unfilled slots in the grid panel? I’m not sure if this behaviour is intentional, but I don’t remember this happening for earlier versions of the engine (4.17-4.19). I’m getting this problem in 4.23 and 4.24. I haven’t checked -4.22 or 4.25. Some reproduction steps are:
-
Create a new user widget and open it for editing.
-
Delete the default root canvas panel and add a grid panel as the root widget in the new user widget’s heirarchy.
-
Add 3 array elements to the ‘Column Fill’ array under the ‘Fill Rules’ section in the details tab of the grid panel.
-
Make the corresponding element values 0.2, 0.2, and 0.6, respectively.
-
Add 3 array elements to the ‘Row Fill’ array under the ‘Fill Rules’ section in the details tab of the grid panel.
-
Make the corresponding element values 0.2, 0.4, and 0.4, respectively
-
Add a border(B1) widget, or any other widget, to the grid panel.
-
This step is optional but makes it easier to see the overall size of the grid slot being occupied. Set both the ‘Horizontal Alignment’ and ‘Vertical Alignment’ to ‘Fill’ within the ‘Slot(GridSlot)’ section in the details tab of B1.
-
Set ‘Row’, ‘Row Span’, ‘Column’, and ‘Column Span’ equal to 0, 1, 0, and 1 within the ‘Slot(GridSlot)’ section in the details tab of B1.
Problem: B1 is now taking up ~50% of the width and ~30% of the height of the grid panel’s screen space. It should be taking up 20% of the width and height based on the grid panel fill rules.
-
Add a border(B2) widget, or any other widget, to the grid panel.so far
-
This step is optional but makes it easier to see the overall size of the grid slot being occupied. Set both the ‘Horizontal Alignment’ and ‘Vertical Alignment’ to ‘Fill’ within the ‘Slot(GridSlot)’ section in the details tab of B2.
-
Set ‘Row’, ‘Row Span’, ‘Column’, and ‘Column Span’ equal to 1, 1, 1, and 1 within the ‘Slot(GridSlot)’ section in the details tab of B2.
Note: B1 should be using the proper amount of the grid panel’s screen space, 20% width and height. B2 should also be the appropriate height.