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

Warning on macOS: Invalid frame dimension (negative or non-finite) #47

Open
patrick-fu opened this issue Dec 17, 2020 · 2 comments
Open

Comments

@patrick-fu
Copy link

On macOS 11.1, when a View is loaded for the first time, the size obtained by GeometryReader is incorrect, resulting in a negative frame value, causing this warning. The real size can only be obtained the second time, as shown in the screenshot.

Screenshot2020-12-17 15 31 46

@keylook
Copy link

keylook commented Jan 30, 2021

Same on tvOS

@shywoody
Copy link

try this, it works for me ~

.frame(width:abs(self.contentWidthFor(geometry)))

technicat added a commit to technicat/QGrid that referenced this issue Sep 22, 2023
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