mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 11:02:40 +08:00
minor improve line height of shrinked text
This commit is contained in:
@@ -325,7 +325,7 @@
|
||||
} else {
|
||||
maxLength = measureWidth;
|
||||
if(actualFontSize < node._drawFontsize) {
|
||||
this._lineHeight = measureHeight + 4;
|
||||
this._lineHeight = measureHeight * 1.2;
|
||||
}
|
||||
totalHeight += Math.max(measureHeight, this._getLineHeight());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user