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

FlowAutoColumnCount error on iOS #7

Closed
tamasszadvari opened this issue May 17, 2016 · 5 comments
Closed

FlowAutoColumnCount error on iOS #7

tamasszadvari opened this issue May 17, 2016 · 5 comments

Comments

@tamasszadvari
Copy link
Contributor

If I set the FlowAutoColumnCount property to true on iOS, the app crashes immediately when the first element is added to the item source.
The FlowListView is inited at the app start, and the app crashes even if I implement the example (SimpleExamplePage) with the autocolumncount.

This is the error description in the HockeyApp crashlog:
" *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 21.5]' "

@tamasszadvari
Copy link
Contributor Author

The error also occurs, if the FlowAutoColumnCount property is set to false, and there's one FlowColumnSimpleTemplateSelector element in the FlowColumnsTemplates property's list.

@tamasszadvari
Copy link
Contributor Author

It seems like that the source of the error is connected with the column with.
If I set the FlowAutoColumnCount to true, and doesn't set a FlowColumnDefaultMinimumWidth (or set it lesser or equal than the half of the page), and add 2 FlowColumnSimpleTemplateSelector to the FlowColumnsTemplates list, the error doesn't happen.
If the FlowColumnDefaultMinimumWidth is bigger than the half of the page, and there's two columns, the error happens independently from the FlowAutoColumnCount property.
If I set only 1 FlowColumnSimpleTemplateSelector, the error happens, no matter how I set the other properties.

@daniel-luberda
Copy link
Owner

@tamasszadvari , sorry for answering so late, I've been quite busy. Did you sort it out? I'll try to investigate it as I'm planning to release a new version of FlowListView. Thanks.

@tamasszadvari
Copy link
Contributor Author

No problem, I compiled the library for myself with the PR modifications, and used that dll. :) I've not done a complete investigation, because the fix in the PR solved my problem. But regarding to the notes, that I've made here, and the fix that I've made, the problem has to be gone. (Every case that I've written here makes one column - if I'm correct -, and that caused an error.)

@daniel-luberda
Copy link
Owner

daniel-luberda commented Jun 23, 2016

@tamasszadvari Thanks for the info! I'll close it and release a fix release then. Once again, thanks for a PR.

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

2 participants