From 8d621e4dce13f323785a7a93d4f08317ae1ce2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 3 Apr 2020 10:23:42 +0200 Subject: [PATCH] [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. --- apps/shared/scrollable_multiple_expressions_view.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/shared/scrollable_multiple_expressions_view.cpp b/apps/shared/scrollable_multiple_expressions_view.cpp index f61000837..987a8e220 100644 --- a/apps/shared/scrollable_multiple_expressions_view.cpp +++ b/apps/shared/scrollable_multiple_expressions_view.cpp @@ -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) } }