fix bug
This commit is contained in:
parent
24e9b0bc45
commit
f72d703afc
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user