[Skia] The focus visual is not being clipped when it should in some cases. #18319
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
project/layout 🧱
Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Currently, the focus visual is only clipped by things like scrolling. There are edge cases where the focus visual should be clipped but it doesn't. These cases are when the element of the focus visual is being partially covered by another element in a Panel (e.g. a Grid or a Canvas).
WinUI
Uno
Surprisingly, WinUI doesn't clip the focus visual if the focused element and the element that partially covers it are direct siblings inside the panel. In other words, the following snippet on WinUI behaves like the Uno image above.
But, if you wrap the focus element in anything (e.g. a UserControl), WinUI clips and Uno doesn't.
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
Similarly:
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: