diff options
-rw-r--r-- | Userland/Libraries/LibGUI/StackWidget.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/StackWidget.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/StackWidget.cpp b/Userland/Libraries/LibGUI/StackWidget.cpp index a5b6aca595..5f5643ee6c 100644 --- a/Userland/Libraries/LibGUI/StackWidget.cpp +++ b/Userland/Libraries/LibGUI/StackWidget.cpp @@ -66,4 +66,9 @@ void StackWidget::child_event(Core::ChildEvent& event) Widget::child_event(event); } +Optional<UISize> StackWidget::calculated_min_size() const +{ + return m_active_widget->calculated_min_size(); +} + } diff --git a/Userland/Libraries/LibGUI/StackWidget.h b/Userland/Libraries/LibGUI/StackWidget.h index ad57814c2e..ee606a5169 100644 --- a/Userland/Libraries/LibGUI/StackWidget.h +++ b/Userland/Libraries/LibGUI/StackWidget.h @@ -22,6 +22,8 @@ public: Function<void(Widget*)> on_active_widget_change; + virtual Optional<UISize> calculated_min_size() const override; + protected: StackWidget() = default; virtual void child_event(Core::ChildEvent&) override; |