mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
[fix] bmfont uv bug when overflow is clamp (#12374)
This commit is contained in:
@@ -632,7 +632,7 @@ export const bmfontUtils = {
|
||||
py -= clipTop;
|
||||
}
|
||||
|
||||
if ((py - letterDef.h * _bmfontScale < _tailoredBottomY) && _overflow === Overflow.CLAMP) {
|
||||
if ((py - _tmpRect.height * _bmfontScale < _tailoredBottomY) && _overflow === Overflow.CLAMP) {
|
||||
_tmpRect.height = (py < _tailoredBottomY) ? 0 : (py - _tailoredBottomY) / _bmfontScale;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user