mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41: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:
parent
42b27d9f87
commit
460c0f9847
Notes:
sideshowbarker
2024-07-18 17:11:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/460c0f98479
|
@ -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…
Reference in a new issue