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

Problem with MinWidth property of the ToggleSwitch #197

Closed
Nihilish opened this issue Nov 3, 2020 · 1 comment
Closed

Problem with MinWidth property of the ToggleSwitch #197

Nihilish opened this issue Nov 3, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Nihilish
Copy link

Nihilish commented Nov 3, 2020

Hello!

Me and my team have run into an issue with the ToggleSwitch. It seems whenever less than 154px are given to the view holding the ToggleSwitch (even if the switch itself takes up a lot less space than that), the focus rectangle doesn't get painted properly.
FocusError
This can be fixed at runtime using Snoop by changing the MinWidth property of the nested grid within the control.
FocusErrorSnoop

UWP doesn't behave the same way. Overriding ToggleSwitchThemeMinWidth locally doesn't seem to work. I think it would be appropriate if the ToggleSwitch itself had a property to set the MinWidth.

Thanks and keep up the good work! :)

@Kinnara
Copy link
Owner

Kinnara commented Nov 12, 2020

Thanks for the detailed report. Let me make ToggleSwitchThemeMinWidth overridable.

@Kinnara Kinnara added the bug Something isn't working label Dec 17, 2020
@Kinnara Kinnara added this to the 0.9.3 milestone Dec 17, 2020
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

2 participants