1. fix button interactable no effect in runtime
2. fix label initial string length to 0 without rendering
This commit is contained in:
JoneLau
2019-06-06 19:12:45 +08:00
committed by Weiliang Wang
parent a1883b6cc6
commit a8b3e5a283
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -709,7 +709,7 @@ export class ButtonComponent extends Component {
return;
}
if (CC_EDITOR) {
if (CC_EDITOR || state === State.DISABLED) {
renderComp.color = color;
} else {
this._fromColor = renderComp.color.clone();
+1 -1
View File
@@ -178,8 +178,8 @@ export class LabelComponent extends UIRenderComponent {
}
this._string = value;
this.updateRenderData();
this._checkStringEmpty();
this.updateRenderData();
}
/**