1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00

LibGUI: Add min_content_size debug property to AbstractScrollableWidget

This helps with debugging subclasses of AbstractScrollableWidget
This commit is contained in:
FrHun 2022-06-29 00:39:08 +02:00 committed by Andreas Kling
parent 247e3ef6e7
commit fddd2bf6ff
2 changed files with 14 additions and 0 deletions

View file

@ -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) {