mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Fix ellipsis rendering for Konva.Text
This commit is contained in:
@@ -463,7 +463,7 @@ export class Text extends Shape<TextConfig> {
|
||||
substrWidth = this._getTextWidth(substr) + additionalWidth;
|
||||
if (substrWidth <= maxWidth) {
|
||||
low = mid + 1;
|
||||
match = substr + (shouldAddEllipsis ? ELLIPSIS : '');
|
||||
match = substr;
|
||||
matchWidth = substrWidth;
|
||||
} else {
|
||||
high = mid;
|
||||
|
Reference in New Issue
Block a user