iced icon indicating copy to clipboard operation
iced copied to clipboard

Setting a fixed width for a Toggler with text breaks its apperance.

Open TheComamba opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Is this issue related to iced?

  • [X] My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Setting the width of a toggler widget to a fixed value breaks the appearance of the widget if and only if it has a text. Specifically, the "slider" becomes very thin.

SSCCE: See the Toggler with fixed width example in my iced playground.

What is the expected behavior?

The toggling part itself should look the same, independent of text and widget width.

Version

crates.io release

Operating System

Linux

Do you have any log output?

No response

TheComamba avatar Jan 27 '24 07:01 TheComamba

Toggler_with_fixed_width

TheComamba avatar Jan 27 '24 07:01 TheComamba

The issue is fixed with the current master branch of iced. This bug can be closed with the next release.

TheComamba avatar Jan 27 '24 08:01 TheComamba