mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[shared] AbstractScrollableExactApproximateExpressionsView: when the
left subview is selected, reload the scroll to display the left view
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user