kangax/fabric.js — pull request #1608 by asturur (2014-08-21 09:59:21+00:00)
Title: Update polygon.class.js

Example PULL REQUEST for polygon FIX idea.

If you check now, whatever the polygon points are, the polygon get translated near origin.
This is because points get offsetted.
And that is good.
This PR has 2 meaning:
1) correcting offsetting by applying top and left that was missing.
2) killing useless this.minX and this.minY
3) calling the Offsetting JUST if we are not in pathgroup and NOT skipping offsetting if we come from "fromElement".

This is an idea, check the code, don't care about spaces, errors in tests ( there will be plenty ).
Just to give support of discussion of the issue #1607