mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
LibGUI: Margins for AbstractScrollableWidget
Implement, and use internally, content_margins() from Widget. Since AbstractScrollableWidget already has a method called content_size, the convenience method, with the same name, in Widget has to be explicitly called.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 01:31:18 +09:00
Author: https://github.com/frhun Commit: https://github.com/SerenityOS/serenity/commit/dab7ec190e5 Pull-request: https://github.com/SerenityOS/serenity/pull/10246 Issue: https://github.com/SerenityOS/serenity/issues/5887 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
@@ -57,6 +57,8 @@ public:
|
||||
int width_occupied_by_vertical_scrollbar() const;
|
||||
int height_occupied_by_horizontal_scrollbar() const;
|
||||
|
||||
virtual Margins content_margins() const override;
|
||||
|
||||
void set_should_hide_unnecessary_scrollbars(bool b) { m_should_hide_unnecessary_scrollbars = b; }
|
||||
bool should_hide_unnecessary_scrollbars() const { return m_should_hide_unnecessary_scrollbars; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user