mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 04:14:52 +08:00
fixed up logical error in Text shape
This commit is contained in:
@@ -155,7 +155,7 @@ Kinetic.Text.prototype = {
|
||||
var row = 0;
|
||||
this.textArr = [];
|
||||
this.textWidth = 0;
|
||||
this.textHeight = this._getTextSize(arr[0]).height;
|
||||
this.textHeight = this._getTextSize(this.attrs.text).height;
|
||||
var lineHeightPx = this.attrs.lineHeight * this.textHeight;
|
||||
var addedToLine = true;
|
||||
while(charArr.length > 0 && addedToLine && (this.attrs.height === 'auto' || lineHeightPx * (row + 1) < this.attrs.height - this.attrs.padding * 2)) {
|
||||
|
Reference in New Issue
Block a user