From f72d703afcc3c8d9fb1742416536d892676d8e12 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Mon, 22 Sep 2025 17:14:03 +0800 Subject: [PATCH] fix bug --- lua/app/ui/tips/help_tips.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/app/ui/tips/help_tips.lua b/lua/app/ui/tips/help_tips.lua index f2aad777..6afbbde0 100644 --- a/lua/app/ui/tips/help_tips.lua +++ b/lua/app/ui/tips/help_tips.lua @@ -90,8 +90,8 @@ function HelpTips:showStyleArena() self.arenaTxClose:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK)) self.arenaTxDesc:setText(self.params.desc) - local height = self.arenaTxDesc:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredHeight - self.arenaContent:setSizeDeltaY(height + 5) + local height = self.arenaTxDesc:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredHeight + 5 + self.arenaContent:setSizeDeltaY(math.max(height, 360)) self.arenaContent:setAnchoredPosition(0, 0) end