mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculation] SelectableView: force relayouting subviews in
scrollToCell
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user