Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: container_base with explicit minimum size can't shrink below that
Composite widgets, i.e. widgets which inherit container_base, such as the unit preview pane, can have an explicit minimum size set in their definition. The widget will request either that size or however much space the child widgets want, whichever is higher. If * the minimum size was higher, * there isn't enough space for that size, and * there would be enough space for the underlying grid not to shrink, then the attempt to reduce the size of the composite widget doesn't do anything. The container_base tells the grid to shrink, but the grid is already small enough to fit inside the given space. Thus, the grid doesn't do anything. In addition, the container_base doesn't change its own size afterwards. This commit fixes the issue and allows composite widgets to shrink.
- Loading branch information