[shared] AbstractScrollableExactApproximateExpressionsView: when the

left subview is selected, reload the scroll to display the left view
This commit is contained in:
Émilie Feral
2019-12-26 13:39:18 +01:00
committed by Léa Saviot
parent acd9e63cbd
commit 10c906e5e2

View File

@@ -174,12 +174,12 @@ void AbstractScrollableExactApproximateExpressionsView::setEqualMessage(I18n::Me
}
void AbstractScrollableExactApproximateExpressionsView::reloadScroll() {
if (selectedSubviewPosition() == SubviewPosition::Center) {
// Scroll to the left extremity
ScrollableView::reloadScroll();
} else {
if (selectedSubviewPosition() == SubviewPosition::Right) {
// Scroll to the right extremity
scrollToContentPoint(KDPoint(contentCell()->bounds().width(), 0), true);
} else {
// Scroll to the left extremity
ScrollableView::reloadScroll();
}
}