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

Fix panic when GridLine 0 is specified #671

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

nicoburns
Copy link
Collaborator

Objective

Fixes a panic. Nobody should be specifying grid line zero because it's invalid, but as it can be specified it definitely shouldn't panic. We already had logic to fall back to "auto" when "0" is specified but there was a fault in that logic.

Alternatives

We could make GridLine take NonZeroi16.

@nicoburns nicoburns added the bug Something isn't working label Jun 25, 2024
@nicoburns nicoburns enabled auto-merge (squash) June 25, 2024 02:40
@nicoburns nicoburns merged commit 385a9b8 into DioxusLabs:main Jun 25, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant