commit ed4d96390ad00b47eacd109e464c6aef99720524 parent 3ab910ab3703909c4ff2bfde4f66deccee02d465 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:36:30 +0200 implement auto scroll to specified row Diffstat:
M | source/jucePluginEditorLib/patchmanager/grid.cpp | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/source/jucePluginEditorLib/patchmanager/grid.cpp b/source/jucePluginEditorLib/patchmanager/grid.cpp @@ -172,7 +172,8 @@ namespace jucePluginEditorLib::patchManager void Grid::ensureVisible(int _row) { - // TODO + const auto pos = getEntryPosition(_row, true); + m_viewport.autoScroll(pos.getCentreX(), pos.getCentreY(), getWidth()>>1, 1000); } int Grid::getSelectedEntry() const