[apps/calculation] additional_outputs: Always force selection on the

left subviews of cells when IllustratedListController pop-up is displayed
This commit is contained in:
Émilie Feral
2020-01-09 15:54:01 +01:00
committed by Léa Saviot
parent dd61468056
commit 272d405eb7
2 changed files with 5 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ IllustratedListController::IllustratedListController(Responder * parentResponder
}
void IllustratedListController::didEnterResponderChain(Responder * previousFirstResponder) {
// Select the left subview on all cells
for (int i = 0; i < k_maxNumberOfAdditionalCalculations; i++) {
m_additionalCalculationCells[i].setSelectedSubviewPosition(ScrollableInputExactApproximateExpressionsView::SubviewPosition::Left);
}
selectCellAtLocation(0, 1);
}

View File

@@ -58,6 +58,7 @@ public:
void setCalculation(Calculation * calculation);
void setDisplayCenter(bool display);
void setDisplayLeft(bool display);
void setSelectedSubviewPosition(ScrollableInputExactApproximateExpressionsView::SubviewPosition subviewPosition) { m_view.setSelectedSubviewPosition(subviewPosition); }
private:
// Remove label margin added by TableCell because they're already handled by ScrollableInputExactApproximateExpressionsView