component Bar {
width: 100%;
height: 100%;
Rectangle { background: lime; }
}
export component Foo {
Bar {}
}
Resize the preview to some random size.
Click "show preview"
The preview resizes (to match a preferreed size which isn't set) (OK).
But the frames doesn't follow immediatly.
Original comment
Right, the master branch SlintPad you linked doesn't have this error. However, there's the following succession of previews:
After first pasting the code:
After pressing "Show Preview" on Bar and then on Foo:
In the master branch only.
For example with this simple slint code:
Resize the preview to some random size. Click "show preview" The preview resizes (to match a preferreed size which isn't set) (OK). But the frames doesn't follow immediatly.
Original comment
Right, the master branch SlintPad you linked doesn't have this error. However, there's the following succession of previews:
After first pasting the code:
After pressing "Show Preview" on
Bar
and then onFoo
:After again pressing "Show Preview" on
Foo
:Originally posted by @Enyium in https://github.com/slint-ui/slint/issues/5949#issuecomment-2310379818
Edit: Updated the code example to include Foo and Bar.