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

Radio buttons active area overlaps #3331

Closed
Nils-Berghs opened this issue Sep 27, 2023 · 4 comments · Fixed by #3390
Closed

Radio buttons active area overlaps #3331

Nils-Berghs opened this issue Sep 27, 2023 · 4 comments · Fixed by #3390
Assignees
Labels
Milestone

Comments

@Nils-Berghs
Copy link
Contributor

Bug explanation

In WPF if you create a some radiobuttons in grid rows or in a vertical stack panel without vertical margins, the active area of the different buttons overlap.
This means that there is a region on the upper button that actually selects the next button (assuming that the upper button is declared first in xaml). When adjusting the Z index of the radio button it is possible to reverse it (i.e. part of the lower button selects the upper one).

<RadioButton Grid.Row="0" Content="Click my upper half to select me"/>
<RadioButton Grid.Row="1" Content="Click my upper half, or the bottom half of the button above, to select me"/>
<RadioButton Grid.Row="2" Content="Click me anywhere, or the bottom half of the button above, to select me"/>

Note that half is slightly exaggerated (maybe bottom third)

Version

4.9.0

@Nils-Berghs Nils-Berghs added bug evaluation required Items is pending review or evaluation by the team labels Sep 27, 2023
@nicolaihenriksen
Copy link
Contributor

@Nils-Berghs I tried to reproduce what you've described here, but I don't see the issue you're describing. Could you provide a sample repo/app that reproduces the issue?

RadioButtons

@nicolaihenriksen nicolaihenriksen added the Waiting on feedback Additional information is needed. Stale items with this label may be closed. label Oct 10, 2023
@Keboo Keboo removed the evaluation required Items is pending review or evaluation by the team label Oct 22, 2023
Copy link
Contributor

This issue is marked stale because it has been open 30 days with no activity. Remove stale label or update the issue, otherwise it will be closed in 14 days.

@github-actions github-actions bot added the Stale Issues and PRs that have not had activity for a while are marked with this label. label Nov 22, 2023
@Nils-Berghs
Copy link
Contributor Author

@nicolaihenriksen when clicking on the text as in your sample, it works correctly, the problem occurs when clicking on the buttons itself

radiobuttons

@nicolaihenriksen nicolaihenriksen removed the Stale Issues and PRs that have not had activity for a while are marked with this label. label Nov 28, 2023
@nicolaihenriksen
Copy link
Contributor

nicolaihenriksen commented Nov 28, 2023

@Nils-Berghs Will try to reproduce it again...

UPDATE: Easily reproducible. I'll have a look at what's going on.

@nicolaihenriksen nicolaihenriksen self-assigned this Nov 28, 2023
@nicolaihenriksen nicolaihenriksen removed the Waiting on feedback Additional information is needed. Stale items with this label may be closed. label Nov 28, 2023
@nicolaihenriksen nicolaihenriksen added this to the 5.0.0 milestone Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants