Fabric.js: SetFill bug on fabric.Polygon

Created on 2 Dec 2016  路  1Comment  路  Source: fabricjs/fabric.js

Version

1.7.0

Test Case

http://jsfiddle.net/Da7SP/266/

Steps to reproduce

Make a new polygon from set of points.
Attempt to set fill by:

canvas.getObjects()[0].setFill("yellow");
canvas.renderAll();

Expected Behavior

After canvas.renderAll(); the entire polygon should be yellow. Note: When you resize by dragging the controls, the view refreshes and polygon becomes yellow.

Actual Behavior

End result is a yellow triangle at the top right.

bug

Most helpful comment

this has to do with internal rendering of the polygon and point translations. very weird.
Top priority.

>All comments

this has to do with internal rendering of the polygon and point translations. very weird.
Top priority.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amancqlsys picture amancqlsys  路  5Comments

urcoder picture urcoder  路  5Comments

keanass picture keanass  路  5Comments

semiadam picture semiadam  路  3Comments

semiadam picture semiadam  路  3Comments