Widget Fixes

This commit is contained in:
IlyaShurupov 2024-10-18 00:21:57 +03:00 committed by Ilya Shurupov
parent 8c4ba37e59
commit b1ba1c2975
7 changed files with 75 additions and 42 deletions

View file

@ -8,7 +8,9 @@ namespace tp {
class ScrollableLayout : public WidgetLayout {
public:
explicit ScrollableLayout(Widget* widget) :
WidgetLayout(widget) {}
WidgetLayout(widget) {
setSizePolicy(SizePolicy::Expanding, SizePolicy::Expanding);
}
void updateLayout(bool vertical) override;
[[nodiscard]] RectF getAvailableChildArea() const override;