mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-11 07:13:09 +00:00
add canvas offset to textarea position (#3306)
This commit is contained in:
parent
a8827e7a5c
commit
e0f687298c
1 changed files with 4 additions and 0 deletions
|
|
@ -496,6 +496,10 @@
|
|||
p.y = maxHeight;
|
||||
}
|
||||
|
||||
// add canvas offset on document
|
||||
p.x += this.canvas._offset.left;
|
||||
p.y += this.canvas._offset.top;
|
||||
|
||||
return { left: p.x + 'px', top: p.y + 'px', fontSize: charHeight };
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue