Commit cae566d7 authored by rockyl's avatar rockyl

修复文本尺寸计算的问题

parent a3eb0863
......@@ -906,6 +906,16 @@ export class TextField extends Sprite {
}
}
/**
* 更新自己的bounds,计算全局
* @private
*/
_calculateBounds() {
const {width, height} = this._localBoundsSelf;
this._bounds.width = width;
this._bounds.height = height;
}
/**
* 更新texture及baseTexture属性
* 不考虑trim,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment