Add: Helper to update widget vertical size.

This avoids directly setting min_y outside widget code.
This commit is contained in:
2023-04-19 13:23:46 +01:00
committed by PeterN
parent 6830e5f5f7
commit 55d981aec3
2 changed files with 14 additions and 0 deletions

View File

@@ -263,6 +263,8 @@ public:
void SetFill(uint fill_x, uint fill_y);
void SetResize(uint resize_x, uint resize_y);
bool UpdateVerticalSize(uint min_y);
void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl) override;
uint min_x; ///< Minimal horizontal size of only this widget.