@chiyou/minigame-framework 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -474,9 +474,11 @@ export class UIMgr extends BaseMgr {
|
|
|
474
474
|
labelComponent.string = content;
|
|
475
475
|
labelComponent.updateRenderData(true);
|
|
476
476
|
let textWidth: number = labelComponent.node.getComponent(UITransform).contentSize.width;
|
|
477
|
+
let textHeight: number = labelComponent.node.getComponent(UITransform).contentSize.height;
|
|
477
478
|
|
|
478
479
|
this.node_toastRoot.active = true;
|
|
479
480
|
this.node_toastRoot.getComponent(UITransform).width = textWidth + 80;
|
|
481
|
+
this.node_toastRoot.getComponent(UITransform).height = textHeight + 40;
|
|
480
482
|
|
|
481
483
|
// 设置 Toast 位置
|
|
482
484
|
if (position !== undefined) {
|