1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

LibGUI: Fix uniform TabWidget tabs bleeding outside the widget

The last uniform-sized tab button would bleed outside the tab bar area
due to us not taking the bar margin into account.
This commit is contained in:
Andreas Kling 2021-04-09 22:30:41 +02:00
parent 1029069ad6
commit bcd05e199b
2 changed files with 5 additions and 3 deletions

View file

@ -108,6 +108,7 @@ private:
Gfx::IntRect container_rect() const;
void update_bar();
void update_focus_policy();
int bar_margin() const { return 2; }
RefPtr<Widget> m_active_widget;