slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.94k stars 568 forks source link

NaN size with Images in new designer #4848

Closed HookedBehemoth closed 6 months ago

HookedBehemoth commented 6 months ago

Dragging an Image widget into a view, resizing it horizonally or vertically results in a zero width or height widget and resizing it again causes a NaN x or y position. e.g. "y: NaNpx;"

https://github.com/slint-ui/slint/assets/22580720/2e3dd222-4274-4bda-bece-d2dfc7dccd70

The missing DnD indicator is also confusing. It's there in the preview video on https://slint.dev/blog/slint-1.5-released though.

hunger commented 6 months ago

Interesting! Thanks for reporting this!