You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just messing around with slint ui and Rust. Found this weird bug that I haven't seen mentioned elsewhere so maybe I'm the first one to experience it, not sure. Down below is my appwindow.slint file, and after running cargo run everything works fine until you try to resize the window. It starts to extend to the right side of my screen infinitely. Here's a video of what happens: https://streamable.com/rges9v
Working on a Macbook Air M2 by the way so I don't know how relevant that'll be.
width: parent.width; cause the CheckBox's size constraints to be the same size of the layout. But the layout need to add some space for the padding. So the size constrinats of the layout becomes bigger than its current size, and on the next frame the window is resized to accomodate for that.
The fix here is to remove the width: parent.width; as the layout does that automatically anyway.
We should ideally detect such loop at compile time: #3997
Closing as duplicated of #2902 , but thanks anyway for reporting.
Just messing around with slint ui and Rust. Found this weird bug that I haven't seen mentioned elsewhere so maybe I'm the first one to experience it, not sure. Down below is my
appwindow.slint
file, and after runningcargo run
everything works fine until you try to resize the window. It starts to extend to the right side of my screen infinitely. Here's a video of what happens: https://streamable.com/rges9vWorking on a Macbook Air M2 by the way so I don't know how relevant that'll be.
The text was updated successfully, but these errors were encountered: