mirror of
https://github.com/568071718/creator-collection-view
synced 2025-05-30 21:24:02 +00:00
获取widget组件容错处理
This commit is contained in:
parent
cdefb153bb
commit
9b68182e90
@ -574,7 +574,7 @@ export class YXCollectionView extends Component {
|
||||
|
||||
let transform = content.getComponent(UITransform) || content.addComponent(UITransform)
|
||||
transform.contentSize = this.node.getComponent(UITransform).contentSize
|
||||
this.getComponent(Widget).updateAlignment?.();
|
||||
this.getComponent(Widget)?.updateAlignment?.();
|
||||
result.content = content
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user