fix(ui): 修复卡片放大缩小时布局错位问题

调整卡片预制件中名字节点的位置偏移量,并在CardComp中为所有相关UI节点添加Widget组件的updateAlignment调用,确保尺寸变化后子元素能正确对齐。
This commit is contained in:
walkpan
2026-04-21 08:36:47 +08:00
parent 0829b0bc9d
commit 6ff01c9bb2
2 changed files with 107 additions and 17 deletions

View File

@@ -3044,7 +3044,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 70,
"y": -66.482,
"z": 0
},
"_lrot": {
@@ -3182,7 +3182,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 30,
"_top": 166.482,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,