egui
egui copied to clipboard
`Area::constrain_to` clips shadow
Describe the bug
When using Area::constrain_to, the shadow gets clipped if close to the edge.
This seems to be cause by this intersect call.
To Reproduce Steps to reproduce the behavior:
- Add a
constrain_toto anArea - Move that area to the edge of the constrained area
Expected behavior Shadow never gets clipped.
Screenshots
In this video you can see how the shadow gets clipped when it reaches the constrain_to rect:
https://github.com/emilk/egui/assets/1410520/c2b660e2-43bd-4c05-b9fe-59adc598cc91
This affects the .stroke of the window as well. Of course it has a worse visual effect the wider the stroke is.