Commit 3a6805c
authored
Fix modern RadioButton glyph clipping in RTL layouts (#14904)
## Proposed changes
- Added DPI-aware glyph padding in `RadioButtonModernAdapter`, preventing RTL hover clipping
- Added regression coverage in `RadioButtonTests`
<!-- We are in TELL-MODE the following section must be completed -->
## Customer Impact
- RadioButton glyphs now render correctly without clipping when using `RightToLeft.Yes` with .NET 11 visual styles, including during mouse hover. The change also respects DPI scaling.1 parent 69aa55b commit 3a6805c
2 files changed
Lines changed: 30 additions & 0 deletions
File tree
- src
- System.Windows.Forms/System/Windows/Forms/Controls/Buttons/ButtonInternal
- test/unit/System.Windows.Forms/System/Windows/Forms
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
240 | 269 | | |
241 | 270 | | |
242 | 271 | | |
| |||
0 commit comments