mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05: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
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
Reference in a new issue