mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +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
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