Update gradient.class.js

This commit is contained in:
Andrea Bogazzi 2015-03-07 15:56:24 +01:00
parent b89bc01847
commit 0933c6f5c2

View file

@ -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;