JohnnyOpcode / degrafa

Automatically exported from code.google.com/p/degrafa
1 stars 0 forks source link

AdvancedRectangle draws top right border incorrectly #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use CSSSkin as a borderSkin for a Canvas.
2. Set the border width to a high number like 10.
3. See the top right corner of the border drawn incorrectly.

What is the expected output? What do you see instead?
Should be a solid border all the way around. Instead the top right corner is 
drawn at an angle.

What version of the product are you using? On what operating system?
Latest from SVN.

Please provide any additional information below.
In the AdvancedRectanlge.drawTopBorder() method, the line:

        graphics.lineTo(rectangle.width - Math.max(topRightRadiusX, rightWidth), topWidth); 

should use Math.min() instead.

Original issue reported on code.google.com by flasha...@gmail.com on 30 Jul 2008 at 9:26

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by benstu...@gmail.com on 12 Oct 2008 at 12:45