Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
TheComamba opened this issue Jan 27, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@TheComamba
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • 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 TheComamba added the bug Something isn't working label Jan 27, 2024
@TheComamba
Copy link
Author

Toggler_with_fixed_width

@TheComamba
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant