Today I tested for the first time on a Xiaomi device and found out that on app launch the display library gives wrong values on the values below.
After 1.5 seconds it starts giving the correct values. This is causing damages in the first scene. No problem on other Android devices.
See the code put on launch:
print(display.actualContentHeight)
print(display.safeActualContentHeight)
timer.performWithDelay( 1500, function()
print(display.actualContentHeight)
print(display.safeActualContentHeight)
end )
--Result:
2036
1932
2400
2296
My config.lua is like:
content = {
width = display.pixelWidth,
height = display.pixelHeight,
scale = "letterBox",
fps = 60,
xAlign = "center",
yAlign = "top"
},