mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +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
Notes:
sideshowbarker
2024-07-17 05:18:58 +09:00
Author: https://github.com/martinfalisse
Commit: 481c0419ba
Pull-request: https://github.com/SerenityOS/serenity/pull/16786
Issue: https://github.com/SerenityOS/serenity/issues/15761
Reviewed-by: https://github.com/AtkinsSJ ✅
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) {
|
||||
if (index == current_index) {
|
||||
found_rect = rect;
|
||||
found_rect.translate_by(0, column_header().height());
|
||||
return IterationDecision::Break;
|
||||
}
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue