刘海屏适配

This commit is contained in:
chenxi 2023-04-26 23:06:03 +08:00
parent 47a75078dc
commit 783ade4a69

View File

@ -25,6 +25,9 @@ function CurrencyBar:init()
-- 刘海屏 -- 刘海屏
local notchHeight = SafeAreaManager:getNotchScreenHeight() local notchHeight = SafeAreaManager:getNotchScreenHeight()
if notchHeight < 36 then
notchHeight = 36
end
self.currencyBg:setAnchoredPositionY(-notchHeight) self.currencyBg:setAnchoredPositionY(-notchHeight)
self.titleBg = titleBg self.titleBg = titleBg
self:setVisible(false) self:setVisible(false)