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 float precision issue in double pass #255

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

tarkah
Copy link
Member

@tarkah tarkah commented Mar 7, 2024

If second pass is fill and we provide the fixed
size from the first pass, it's possible fill doesn't return the same layout within those limits due to
flex / float precision. Expanding the limits by 1
pixel appears to completely resolve this.

If second pass is fill and we provide the fixed
size from the first pass, it's possible fill doesn't
return the same layout within those limits due to
flex / float precision. Expanding the limits by 1
pixel appears to completely resolve this.
@casperstorm
Copy link
Member

@andymandias mind testing this for the context menu bug? @tarkah cooked up a much better solution.

@andymandias
Copy link
Collaborator

Looks good, all context menus render as intended.

@casperstorm casperstorm merged commit f12272f into main Mar 7, 2024
1 check passed
@casperstorm casperstorm deleted the fix/double-pass-float-precision branch March 7, 2024 20:42
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

Successfully merging this pull request may close these issues.

3 participants