Skip to content

Commit 2ab6514

Browse files
Fixed an issue that contentSize value was slightly incorrect
1 parent 862d3d3 commit 2ab6514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Framework/Sources/SpreadsheetView+Layout.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ extension SpreadsheetView {
326326
}
327327

328328
func resetOverlayViewContentSize(_ contentInset: UIEdgeInsets) {
329-
let width = contentInset.left + contentInset.right + tableView.state.frame.origin.x - intercellSpacing.width + tableView.state.contentSize.width
330-
let height = contentInset.top + contentInset.bottom + tableView.state.frame.origin.y - intercellSpacing.height + tableView.state.contentSize.height
329+
let width = contentInset.left + contentInset.right + tableView.state.frame.origin.x + tableView.state.contentSize.width
330+
let height = contentInset.top + contentInset.bottom + tableView.state.frame.origin.y + tableView.state.contentSize.height
331331
overlayView.contentSize = CGSize(width: width, height: height)
332332
overlayView.contentOffset.x = tableView.state.contentOffset.x - contentInset.left
333333
overlayView.contentOffset.y = tableView.state.contentOffset.y - contentInset.top

0 commit comments

Comments
 (0)