mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-16 17:51:07 +00:00
Update gradient.class.js
This commit is contained in:
parent
b89bc01847
commit
0933c6f5c2
1 changed files with 1 additions and 1 deletions
|
|
@ -258,7 +258,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (object.type === 'text') {
|
||||
if (object.type === 'text' || object.type === 'i-text') {
|
||||
for (prop in coords) {
|
||||
if (prop === 'x1' || prop === 'x2') {
|
||||
coords[prop] -= object.width / 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue