Weird behavior when adding a certain number of rects on click #3269
-
Hello, Let me start of by saying that I am a huge fan of slint. I am currently in the process of learning/experimenting and would like to apologize if this question (or a similar one) has been answered before. My code is:
This allows me to add rectangles up until the window is full. If I try to add more, something weird happens (the window becomes elongated and can't be closed anymore). I must be doing something very wrong. Could someone please explain? Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think you are seeing something like what's described in this bug: #2902 |
Beta Was this translation helpful? Give feedback.
I think you are seeing something like what's described in this bug: #2902
What happens is that the layout size depends on the window size, and the windows size depends on the layout size. That makes a loop which is unfortunately not detected by the compiler at this time. And the size of the window just grows.