diff options
author | FrHun <28605587+frhun@users.noreply.github.com> | 2022-06-29 00:39:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-06-30 11:53:50 +0200 |
commit | fddd2bf6ff8d51f686627bb6a7f571a6d1adddc6 (patch) | |
tree | 2c6a508825f80126674a1b5994411d77b3d61eda /Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp | |
parent | 247e3ef6e74c0e9c4fb794162fe092a76e29f77b (diff) | |
download | serenity-fddd2bf6ff8d51f686627bb6a7f571a6d1adddc6.zip |
LibGUI: Add min_content_size debug property to AbstractScrollableWidget
This helps with debugging subclasses of AbstractScrollableWidget
Diffstat (limited to 'Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp b/Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp index 5466f5f3fc..013541faf4 100644 --- a/Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp +++ b/Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp @@ -13,6 +13,8 @@ namespace GUI { AbstractScrollableWidget::AbstractScrollableWidget() { + REGISTER_READONLY_SIZE_PROPERTY("min_content_size", min_content_size); + m_vertical_scrollbar = add<AbstractScrollableWidgetScrollbar>(*this, Orientation::Vertical); m_vertical_scrollbar->set_step(4); m_vertical_scrollbar->on_change = [this](int) { |