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
Notes: sideshowbarker 2024-07-19 10:51:02 +09:00

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);
}