slint icon indicating copy to clipboard operation
slint copied to clipboard

Preview: when clicking "show preview" the size of the preview adjust but not the frame

Open ogoffart opened this issue 1 year ago • 1 comments

In the master branch only.

For example with this simple slint code:

 export component Foo {
  Rectangle { background: lime; }
}

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:

1

After pressing "Show Preview" on Bar and then on Foo:

2

After again pressing "Show Preview" on Foo:

3

Originally posted by @Enyium in https://github.com/slint-ui/slint/issues/5949#issuecomment-2310379818

ogoffart avatar Aug 26 '24 14:08 ogoffart

That's an interesting issue: In the middle picture the resize handles are in the right place, but the box that goes with those is not.

hunger avatar Aug 27 '24 09:08 hunger