刘海屏适配
This commit is contained in:
parent
47a75078dc
commit
783ade4a69
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user