mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibGUI: Fix highlighting of elements in TreeView
Previously, incorrect items were highlighted when hovering over elements in TreeView when there was a column header.
This commit is contained in:
parent
4c7a99fe06
commit
481c0419ba
1 changed files with 1 additions and 0 deletions
|
@ -775,6 +775,7 @@ Gfx::IntRect TreeView::content_rect(ModelIndex const& index) const
|
||||||
traverse_in_paint_order([&](ModelIndex const& current_index, Gfx::IntRect const& rect, Gfx::IntRect const&, int) {
|
traverse_in_paint_order([&](ModelIndex const& current_index, Gfx::IntRect const& rect, Gfx::IntRect const&, int) {
|
||||||
if (index == current_index) {
|
if (index == current_index) {
|
||||||
found_rect = rect;
|
found_rect = rect;
|
||||||
|
found_rect.translate_by(0, column_header().height());
|
||||||
return IterationDecision::Break;
|
return IterationDecision::Break;
|
||||||
}
|
}
|
||||||
return IterationDecision::Continue;
|
return IterationDecision::Continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue