适配
This commit is contained in:
parent
6d06898082
commit
76615c949d
@ -5,7 +5,7 @@ CurrencyBar.cellWidth = 174
|
|||||||
CurrencyBar.cellHeight = 40
|
CurrencyBar.cellHeight = 40
|
||||||
|
|
||||||
local OFFSET_X = -27
|
local OFFSET_X = -27
|
||||||
local OFFSET_Y = -22
|
local OFFSET_Y = -36
|
||||||
|
|
||||||
function CurrencyBar:init()
|
function CurrencyBar:init()
|
||||||
self.currVisible = true
|
self.currVisible = true
|
||||||
@ -25,9 +25,6 @@ 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