mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-22 20:25:49 +00:00
Fixes Center/Right aligned cursor placement
Fixes Center/Right aligned cursor placement by mouse click when the text box is scaled
This commit is contained in:
parent
272859b8f1
commit
77f304bed0
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
var widthOfLine = this._getWidthOfLine(this.ctx, i, textLines);
|
||||
var lineLeftOffset = this._getLineLeftOffset(widthOfLine);
|
||||
|
||||
width = lineLeftOffset;
|
||||
width = lineLeftOffset * this.scaleX;
|
||||
|
||||
if (this.flipX) {
|
||||
// when oject is horizontally flipped we reverse chars
|
||||
|
|
|
|||
Loading…
Reference in a new issue