aui
aui copied to clipboard
`rectangleBorder` broken
Hey @Alex2772,
I tried to use rectangleBorder from the IRenderer interface for a custom view, but the result is notz drawn properly, finally had to use roundedRectangleBorder with a radius of 0 to have the correct result. There is the current output:
The semi-rectangle in red is the result of rectangleBorder, and the rectangle in blue is the result of roundedRectangleBorder.
// Outer box (wrong result)
ctx.render.rectangleBorder(
ASolidBrush { colors::secondary._600 },
outer_offset,
outer_size,
2_dp);
// Inner box (correct result)
ctx.render.roundedRectangleBorder(
ASolidBrush { colors::primary._600 },
inner_offset,
inner_size,
0,
2_dp);
Yes it’s known issue. Yes, using rounded rectangle border is a valid workaround. We use it as well.
Thank you for rising this issue.
I’ll keep this issue open until further investigation.