mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-15 01:03:10 +00:00
Update polygon.class.js
!options..left would fail in case of left = 0.
This commit is contained in:
parent
67a4be50a2
commit
c2820bfcd5
1 changed files with 2 additions and 2 deletions
|
|
@ -60,10 +60,10 @@
|
|||
this.points = points;
|
||||
this.callSuper('initialize', options);
|
||||
this._calcDimensions();
|
||||
if (!options.top) {
|
||||
if (!('top' in options)) {
|
||||
this.top = this.minY;
|
||||
}
|
||||
if (!options.left) {
|
||||
if (!('left' in options)) {
|
||||
this.left = this.minX;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue