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

Remove min width 1 from scrollbar & scroller #1844

Merged
merged 2 commits into from
May 23, 2023

Conversation

tarkah
Copy link
Member

@tarkah tarkah commented May 11, 2023

I'm not sure if there's a reason to enforce this, but ideally the user can set it to 0.0 to "hide" the scrollbar / scroller.

The only way to "hide" the scrollbar / scroller currently is via the stylesheet, which is only aesthetic. This still allows them to be interacted with.

You can test this change by running scrollable example. If you set both to 0, the scrollable still works via scrollwheel / trackpad, but the scrollbar / scroller are hidden / don't work. You can even set scrollbar to 0 but keep scroller width to have a floating scroller w/ no scrollbar, which is a feature imo.

@hecrj hecrj added this to the 0.10.0 milestone May 18, 2023
@hecrj hecrj added feature New feature or request widget labels May 18, 2023
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks 🙇

@hecrj hecrj enabled auto-merge May 23, 2023 02:40
@hecrj hecrj merged commit 8300d86 into iced-rs:master May 23, 2023
@tarkah tarkah deleted the fix/scrollbar-widths branch May 23, 2023 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants