mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user