This commit is contained in:
puxuan 2025-09-22 17:14:03 +08:00
parent 24e9b0bc45
commit f72d703afc

View File

@ -90,8 +90,8 @@ function HelpTips:showStyleArena()
self.arenaTxClose:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK)) self.arenaTxClose:setText(I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK))
self.arenaTxDesc:setText(self.params.desc) self.arenaTxDesc:setText(self.params.desc)
local height = self.arenaTxDesc:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredHeight local height = self.arenaTxDesc:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredHeight + 5
self.arenaContent:setSizeDeltaY(height + 5) self.arenaContent:setSizeDeltaY(math.max(height, 360))
self.arenaContent:setAnchoredPosition(0, 0) self.arenaContent:setAnchoredPosition(0, 0)
end end