cliftonm / FlowSharp

A WinForm Diagramming Tool
246 stars 105 forks source link

Improper behavior of the triangle with a border width greater than 1 #2

Closed delexzone closed 8 years ago

delexzone commented 8 years ago

Steps to reproduce

  1. Place triangle on the canvas.
  2. Change border width to 2
  3. Change size to min height and resize the width left/right

image

cliftonm commented 8 years ago

Yeah, that's ugly, and points the bigger problems with how .NET renders shapes with pen widths > 1. I'll look some more at this issue. One thing I'm considering is that the display rectangle is shrunk by the pen width/2, so that the shape always renders inside the display rectangle, except that even that doesn't work in your scenario. This may require a custom drawing routine for pen widths > 1 for all shapes. Sigh.

cliftonm commented 8 years ago

rtriangle

The compromise.