LibGUI: Recheck size excesses when scrollbars become visible

Fixes edge cases in which hidden scrollbars could become visible
and obscure content or fail to hide when no longer needed
This commit is contained in:
thankyouverycool 2021-02-17 12:15:52 -05:00 committed by Andreas Kling
commit 2df219d608
Notes: sideshowbarker 2024-07-18 22:05:24 +09:00
2 changed files with 23 additions and 15 deletions

View file

@ -57,6 +57,7 @@ public:
bool is_scrollbars_enabled() const { return m_scrollbars_enabled; }
Gfx::IntSize available_size() const;
Gfx::IntSize excess_size() const;
ScrollBar& vertical_scrollbar() { return *m_vertical_scrollbar; }
const ScrollBar& vertical_scrollbar() const { return *m_vertical_scrollbar; }