-
Notifications
You must be signed in to change notification settings - Fork 536
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
Infinitely growing layout #2902
Comments
I can reroduce the problem: We could try to detect that as a binding loop. The question is how. Should we make a link between the width/height of a window and the preferred/minimum/maximum size? |
(This was also tracked in #257 , but i closed it in favor of this one) |
This seems similar to what I'm getting with this UI: import { Button } from "std-widgets.slint";
export component MainWindow inherits Window {
VerticalLayout {
width: parent.width;
height: parent.height;
Button {
text: "Button";
}
Rectangle {
width: parent.width;
height: parent.height; // this is the problem
}
}
} This produces a black-out window that starts normal but blacks out eventually (on wayland/sway linux). |
Now with slint lsp (nightly 1.4.1)
I have such panic
|
The following code produces an infinitely growing window:
(the exact behaviour differs between backends, sometimes it doesn't grow or randomly stops growing)
I guess the expected behaviour here is to detect a binding loop?
The text was updated successfully, but these errors were encountered: