mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calc] Do not forget to call parent method
Scenario: Open several times the additional outputs menu, there are drawing problems (multiple stack headers)
This commit is contained in:
committed by
EmilieNumworks
parent
686e25ec43
commit
c8537df3b4
@@ -25,10 +25,11 @@ int ExpressionsListController::reusableCellCount(int type) {
|
||||
}
|
||||
|
||||
void ExpressionsListController::viewDidDisappear() {
|
||||
ListController::viewDidDisappear();
|
||||
// Reset cell memoization to avoid taking extra space in the pool
|
||||
for (int i = 0; i < k_maxNumberOfCells; i++) {
|
||||
m_cells[i].setLayout(Layout());
|
||||
}
|
||||
m_cells[i].setLayout(Layout());
|
||||
}
|
||||
}
|
||||
|
||||
HighlightCell * ExpressionsListController::reusableCell(int index, int type) {
|
||||
|
||||
@@ -26,7 +26,7 @@ void IllustratedListController::didEnterResponderChain(Responder * previousFirst
|
||||
}
|
||||
|
||||
void IllustratedListController::viewDidDisappear() {
|
||||
StackViewController::viewDidDisappear();
|
||||
ListController::viewDidDisappear();
|
||||
// Reset the context as it was before displaying the IllustratedListController
|
||||
Poincare::Context * context = App::app()->localContext();
|
||||
if (m_savedExpression.isUninitialized()) {
|
||||
|
||||
Reference in New Issue
Block a user