1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 15:24:57 +00:00

LibGUI: Teach GScrollableWidget how to hide unnecessary scrollbars

This is now an opt-in mode enabled by calling:

    should_hide_unnecessary_scrollbars(true)

This patch enables the mode for GTreeView and GTableView. :^)
This commit is contained in:
Andreas Kling 2019-09-05 21:37:15 +02:00
parent fb39e46d3d
commit 7a906ab539
4 changed files with 25 additions and 2 deletions

View file

@ -15,6 +15,8 @@ GTableView::GTableView(GWidget* parent)
set_frame_shape(FrameShape::Container);
set_frame_shadow(FrameShadow::Sunken);
set_frame_thickness(2);
set_should_hide_unnecessary_scrollbars(true);
}
GTableView::~GTableView()