mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] AbstractScrollableExactApproximateExpressionsView: let the
child class decides which subview to select
This commit is contained in:
@@ -199,15 +199,6 @@ void AbstractScrollableExactApproximateExpressionsView::setDisplayLeft(bool disp
|
||||
layoutSubviews();
|
||||
}
|
||||
|
||||
void AbstractScrollableExactApproximateExpressionsView::didBecomeFirstResponder() {
|
||||
if (contentCell()->centeredExpressionView()->layout().isUninitialized()) {
|
||||
setSelectedSubviewPosition(SubviewPosition::Right);
|
||||
}
|
||||
if (contentCell()->rightExpressionView()->layout().isUninitialized()) {
|
||||
setSelectedSubviewPosition(SubviewPosition::Center);
|
||||
}
|
||||
}
|
||||
|
||||
bool AbstractScrollableExactApproximateExpressionsView::handleEvent(Ion::Events::Event event) {
|
||||
bool leftIsVisible = false;
|
||||
KDCoordinate leftWidth = 0;
|
||||
|
||||
@@ -27,7 +27,6 @@ public:
|
||||
void setDisplayCenter(bool display);
|
||||
void setDisplayLeft(bool display);
|
||||
void reloadScroll();
|
||||
void didBecomeFirstResponder() override;
|
||||
bool handleEvent(Ion::Events::Event event) override;
|
||||
Poincare::Layout layout() const {
|
||||
return constContentCell()->layout();
|
||||
|
||||
Reference in New Issue
Block a user