Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With frozenRows method getting different indexes #239

Open
snkitsolutions opened this issue May 28, 2020 · 2 comments
Open

With frozenRows method getting different indexes #239

snkitsolutions opened this issue May 28, 2020 · 2 comments

Comments

@snkitsolutions
Copy link

snkitsolutions commented May 28, 2020

Expected Behavior

Frozen 1 row and 1 column should show array from index 0

Actual Behavior

When I freeze both column and row. I am not getting first value of the array.
I have just commented
func frozenRows(in spreadsheetView: SpreadsheetView) -> Int {
return 1
}
function in one and uncommented in another.

With frozenRows method
without_commented

Commented frozenRows method
with_commented

Please let me know how to deal with this?

Steps to Reproduce the Problem

  1. Created 1 dimensional array for row header
  2. Created 1 dimensional array for column header
  3. Created 2 dimensional array for values.

Specifications

  • Xcode version: ? 11.0
  • iOS version: ? 12.4
  • Dependency manager + version: ?
@timpickles
Copy link

It's possible to see the missing row when using Debug View Hierarchy and rotating the view. You can see the missing row sitting directly underneath the frozen row. I hope this helps identify the issue.

@Roger-Blinto
Copy link

I my case solved by removing the initial call to reloadData(). In some way it messed things up for the internal one issued by SpreadsheetView.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants