[apps/shared] ScrollableMultipleExpressionsView: reload scroll content

view layout when changing the displayed expression layouts

Fix bug: input (transpose([1 1 1 1 1 1])[1 1 1 1 1 1])^30, click on 'OK'
and then 'up'. The cell is mis-displayed.
This commit is contained in:
Émilie Feral
2020-04-03 10:23:42 +02:00
committed by LeaNumworks
parent 300de8fb15
commit 8d621e4dce

View File

@@ -168,7 +168,10 @@ void AbstractScrollableMultipleExpressionsView::setLayouts(Poincare::Layout left
}
if (updateLeftLayout || updateCenterLayout || updateRightLayout) {
contentCell()->reloadTextColor();
// Reload expressions layouts
contentCell()->layoutSubviews();
// Reload the scroll content view layout (the content size might have changed)
layoutSubviews();
// Do no reload scroll here as 'setLayouts' is called every time the table is re-layout (when scrolling for instance)
}
}