fix
设置页面资源
This commit is contained in:
@@ -102,15 +102,19 @@ export class ChatContentsLayout extends Component {
|
||||
newBubble.node.position = new Vec3(pos.x, initPosY, pos.z);
|
||||
|
||||
pendingUpdates++;
|
||||
newBubble.updateBubbleContent(dialog.content, (actualHeight: number) => {
|
||||
initPosY += actualHeight + 20;
|
||||
pendingUpdates--;
|
||||
newBubble.updateBubbleContent(
|
||||
dialog.content,
|
||||
(actualHeight: number) => {
|
||||
initPosY += actualHeight + 40;
|
||||
pendingUpdates--;
|
||||
|
||||
// 当当前气泡更新完成后,处理下一个
|
||||
if (pendingUpdates === 0) {
|
||||
updateNextBubble(index - 1);
|
||||
}
|
||||
}, dialog.isLoading || false);
|
||||
// 当当前气泡更新完成后,处理下一个
|
||||
if (pendingUpdates === 0) {
|
||||
updateNextBubble(index - 1);
|
||||
}
|
||||
},
|
||||
dialog.isLoading || false
|
||||
);
|
||||
|
||||
this.bubbles.push(newBubble);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user