mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibGUI: Don't scroll TreeView horizontally to bring index into view
This behavior was really irritating and basically never what you wanted so let's stop doing it.
This commit is contained in:
parent
42b27d9f87
commit
460c0f9847
1 changed files with 2 additions and 2 deletions
|
@ -370,7 +370,7 @@ void TreeView::paint_event(PaintEvent& event)
|
|||
});
|
||||
}
|
||||
|
||||
void TreeView::scroll_into_view(const ModelIndex& a_index, bool scroll_horizontally, bool scroll_vertically)
|
||||
void TreeView::scroll_into_view(const ModelIndex& a_index, bool, bool scroll_vertically)
|
||||
{
|
||||
if (!a_index.is_valid())
|
||||
return;
|
||||
|
@ -382,7 +382,7 @@ void TreeView::scroll_into_view(const ModelIndex& a_index, bool scroll_horizonta
|
|||
}
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
AbstractScrollableWidget::scroll_into_view(found_rect, scroll_horizontally, scroll_vertically);
|
||||
AbstractScrollableWidget::scroll_into_view(found_rect, false, scroll_vertically);
|
||||
}
|
||||
|
||||
void TreeView::model_did_update(unsigned flags)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue