Commit e9c9c132 authored by rockyl's avatar rockyl

修复布局问题

parent f053e91f
...@@ -47,6 +47,8 @@ export class Image extends Sprite { ...@@ -47,6 +47,8 @@ export class Image extends Sprite {
private _setSourceDirect(value){ private _setSourceDirect(value){
this._source = value; this._source = value;
this.updateSource(); this.updateSource();
this.dispatchEvent(Event.RESIZE);
} }
private _setSource(value){ private _setSource(value){
...@@ -69,8 +71,6 @@ export class Image extends Sprite { ...@@ -69,8 +71,6 @@ export class Image extends Sprite {
} else { } else {
this._setSourceDirect(value); this._setSourceDirect(value);
} }
this.dispatchEvent(Event.RESIZE);
} }
} }
......
...@@ -39,8 +39,6 @@ export class Label extends TextField { ...@@ -39,8 +39,6 @@ export class Label extends TextField {
} else { } else {
super._setText(value); super._setText(value);
} }
this.dispatchEvent(Event.RESIZE);
} }
} }
......
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