Skip to content

Commit dd5ee52

Browse files
Reflect the content size from the model to the view when reloading.
Fixed an issue where the content size may be incorrect after reloading.
1 parent 9c27311 commit dd5ee52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Framework/Sources/SpreadsheetView+Layout.swift

+4
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ extension SpreadsheetView {
241241
}
242242

243243
func resetContentSize(of scrollView: ScrollView) {
244+
defer {
245+
scrollView.contentSize = scrollView.state.contentSize
246+
}
247+
244248
scrollView.columnRecords.removeAll()
245249
scrollView.rowRecords.removeAll()
246250

0 commit comments

Comments
 (0)