Commit 711d9001 authored by rockyl's avatar rockyl

修复文本框bounds计算的问题

parent 02a4abd8
......@@ -926,6 +926,9 @@ export class TextField extends Sprite {
*/
_calculateBounds() {
const {width, height} = this._localBoundsSelf;
var matrix = this.transform.worldMatrix;
this._bounds.x = matrix.tx;
this._bounds.y = matrix.ty;
this._bounds.width = width;
this._bounds.height = height;
}
......
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