Merge branch 'main' of 47.107.44.202:xionglijia/18xchat

This commit is contained in:
chen wei bo
2025-10-13 18:31:56 +08:00
4 changed files with 42 additions and 36 deletions
@@ -137,17 +137,20 @@ export class DialogBubble extends Component {
//const bgHeight = actualHeight + 17;
this.bg.setContentSize(new Size(actualSize.x + 40, actualSize.y + 30));
this.uiTransform.setContentSize(
new Size(actualSize.x + 40, actualSize.y + 30)
new Size(
actualSize.x + 40,
actualSize.y + 30 > 110 ? actualSize.y + 30 : 110
)
);
// 回调通知实际高度
if (callback) {
callback(actualSize.y);
callback(actualSize.y > 110 ? actualSize.y : 110);
}
}, 0);
// 返回预估的背景高度(用于同步计算)
const estimatedHeight = Math.max(lines.length * 35 + 20, 60); // 最小高度60
const estimatedHeight = Math.max(lines.length * 35 + 20, 110); // 最小高度60
return estimatedHeight;
}
@@ -76,7 +76,7 @@ export class PastGirlListPanel extends li_BaseView {
await this.reqCanChatGirlData();
const GirlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
const allids = GirlData.getAllCanChatGirlIds();
const allids = GirlData.getAllAlreadyChatGirlIds();
logger.log(allids);
return allids;
}