iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
23.3k stars 1.07k forks source link

`tiny-skia` ignores the border of the `Scroller` inside a `Scrollbar` #1984

Open GyulyVGC opened 11 months ago

GyulyVGC commented 11 months ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

While wgpu correctly takes into account the border width and colour of the Scroller in a Scrollbar, tiny-skia doesn't consider it and seems to keep it with a fixed width of zero.

What is the expected behavior?

The border of the Scroller is rendered properly also by tiny-skia

Version

crates.io release

Operating System

macOS

Do you have any log output?

No response

sdgoihew commented 9 months ago

Same for me on both wgpu and tiny-skia.

(sorry, in vidrel "margin x" text swapped places with "margin y") https://github.com/iced-rs/iced/assets/115432842/ae9e632b-6161-4cad-a251-75b53e9e6cb7

Possibly related issues: https://github.com/iced-rs/iced/issues/1632 https://github.com/iced-rs/iced/issues/2086