mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-11 05:32:59 +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:
parent
fb39e46d3d
commit
7a906ab539
Notes:
sideshowbarker
2024-07-19 12:15:38 +09:00
Author: https://github.com/awesomekling
Commit: 7a906ab539
4 changed files with 25 additions and 2 deletions
Libraries/LibGUI
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue