魂灵宝界面修改提交

dev_chengFeng
jiaoyangna 2021-11-12 11:26:02 +08:00
parent bbb1c8e1a6
commit 021b0e03be
1 changed files with 7 additions and 8 deletions

View File

@ -322,17 +322,16 @@ function RewardTalismanSingleShowPopup2:OnShow()
ForceRebuildLayout(self.midBar.transform)
ForceRebuildLayout(self.midBar.transform)
ForceRebuildLayout(self.midBar.transform)
if self.isShowGet then
self.mid:GetComponent("LayoutElement").minHeight = 850
local maxHeight = self.isShowGet and 250 or 850
local sizeDelta = GetPreferredHeight(self.midBar.transform)
if sizeDelta >= maxHeight then
self.mid:GetComponent("LayoutElement").minHeight = maxHeight
else
local sizeDelta = GetPreferredHeight(self.midBar.transform)
if sizeDelta >= 850 then
self.mid:GetComponent("LayoutElement").minHeight = 850
else
self.mid:GetComponent("LayoutElement").minHeight = sizeDelta
end
self.mid:GetComponent("LayoutElement").minHeight = sizeDelta
end
if self.func then
self.func()
end