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

Detect binding loops that applies to the Window itself #3997

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ogoffart
Copy link
Member

The Window geometry depends on its constraints, so its constraints cannot depends on its geometry

This fixes Infinitely growing layout, and other panics

Fixes #3989
Fixes #2902

The Window geometry depends on its constraints, so its constraints
cannot depends on its geometry

This fixes Infinitely growing layout, and other panics

Fixes #3989
Fixes #2902
Copy link
Member

@hunger hunger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me.

@tronical
Copy link
Member

Maybe “dingind” -> “binding” :)

@ogoffart ogoffart changed the title Detect dingind loops that applies to the Window itself Detect binding loops that applies to the Window itself Nov 24, 2023
@qarmin
Copy link

qarmin commented Dec 24, 2023

What is status of this PR?

I have random crashes related to logic bugs same as in linked issues, but when looking at CI I see that there are some regressions(or expected api breakage)

@ogoffart
Copy link
Member Author

Yes, there is some API breakage and we're not confident we can do them.
We're wondering if there isn't a better way to solve this problem.

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.

Infinitely growing layout LSP crash when specifying padding based on parent width
4 participants