1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

LibGUI: Fix GTreeView column headers incorrectly scrolling with content

This commit is contained in:
Andreas Kling 2019-12-15 18:17:02 +01:00
parent be0b527cfc
commit 7fea25943d

View file

@ -275,6 +275,8 @@ void GTreeView::paint_event(GPaintEvent& event)
return IterationDecision::Continue;
});
// Untranslate the painter vertically and do the column headers.
painter.translate(0, vertical_scrollbar().value());
paint_headers(painter);
}