Resizing a uniform grid pannel widget

The simple option would be to not use a grid, just use a vertical box, problem solved at face value…but
but really the widget is a visual representation of your inventory array, if you remove items, this should be done first in the inventory logic and the widgets updated to reflect this change, widgets are secondary, they should not contain any logic not relating specifically to visual display. If you add or remove inventory items, perform the logic, then update the grids, clear and repopulate.

2 Likes