mirror of
https://github.com/konvajs/konva.git
synced 2025-05-03 04:13:55 +08:00
fixed up logical error in Text shape
This commit is contained in:
parent
66f29c602e
commit
3e0ed1c2fb
2
dist/kinetic-core.js
vendored
2
dist/kinetic-core.js
vendored
@ -4055,7 +4055,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)) {
|
||||
|
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user