ui: scroll code horizontally to active sourcelocations

This commit is contained in:
Eberhard Graether
2018-07-22 19:40:01 +02:00
parent ad6f5c8727
commit 1db248a34e
7 changed files with 116 additions and 8 deletions
@@ -197,6 +197,8 @@ bool QtCodeFileSingle::requestScroll(
double percentB = endLineNumber ? double(endLineNumber - 1) / m_area->getEndLineNumber() : 0.0f;
ensurePercentVisibleAnimated(percentA, percentB, animated, target);
m_area->ensureLocationIdVisible(locationId, width(), animated);
m_scrollRequested = true;
return true;