mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibGUI: Tighten invalidation rect for TabWidget
Previously the whole bar was repainted, there's no need to invalidate past the last tab button.
This commit is contained in:
parent
b57f7def1f
commit
bab83ecc95
Notes:
sideshowbarker
2024-07-18 08:44:52 +09:00
Author: https://github.com/metmo
Commit: bab83ecc95
Pull-request: https://github.com/SerenityOS/serenity/pull/8882
Reviewed-by: https://github.com/gunnarbeutner ✅
1 changed files with 1 additions and 0 deletions
|
@ -412,6 +412,7 @@ void TabWidget::update_bar()
|
|||
{
|
||||
auto invalidation_rect = bar_rect();
|
||||
invalidation_rect.set_height(invalidation_rect.height() + 1);
|
||||
invalidation_rect.set_right(button_rect(static_cast<int>(m_tabs.size() - 1)).right());
|
||||
update(invalidation_rect);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue