aui icon indicating copy to clipboard operation
aui copied to clipboard

`rectangleBorder` broken

Open na2axl opened this issue 1 year ago • 1 comments

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: image

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);

na2axl avatar Nov 05 '24 02:11 na2axl

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.

Alex2772 avatar Nov 05 '24 03:11 Alex2772