diff --git a/apps/calculation/selectable_table_view.cpp b/apps/calculation/selectable_table_view.cpp index c00bed4b1..20fc275ec 100644 --- a/apps/calculation/selectable_table_view.cpp +++ b/apps/calculation/selectable_table_view.cpp @@ -18,7 +18,8 @@ void CalculationSelectableTableView::scrollToCell(int i, int j) { } else { setTopMargin(0); } - ScrollView::layoutSubviews(); + // Force to relayout + ScrollView::layoutSubviews(true); if (m_contentView.bounds().height() - contentOffset().y() < bounds().height()) { KDCoordinate contentOffsetX = contentOffset().x(); KDCoordinate contentOffsetY = dataSource()->cumulatedHeightFromIndex(dataSource()->numberOfRows()) - maxContentHeightDisplayableWithoutScrolling();