@roman85 It’s good to hear that it’s not just me. As Joshua pointed out above, the bug report was closed as not a bug in corona but a bug in my code. If that’s the case, it’s fine. I’d just like to understand what the bug is in my code. Can anyone tell me where the issue is?
Below is code and config to reproduce the issue. It only fails to display correctly on a Samsung Galaxy G4, as far as I know.
main.lua
-- set background color so that the status bar is easier to see display.setDefault("background", 100,100,100) -- set status bar to show display.setStatusBar(display.DarkStatusBar) -- get status bar height local topStatusBarContentHeight = display.topStatusBarContentHeight -- calculate the screen origin y (the top of the scree), taking into consideration the status bar local screen\_origin\_with\_status\_bar = display.screenOriginY + topStatusBarContentHeight -- draw some numbers on the screen with the new screen origin as the reference for i=1,10 do local text = display.newText(tostring(i), 0, screen\_origin\_with\_status\_bar + (i-1)\*20, native.systemFont, 22) text:setTextColor(255, 255, 255) end -- Show the status bar height local myText = display.newText("status bar height: " .. tostring(topStatusBarContentHeight), 50, 150, native.systemFont, 18) myText:setTextColor(255, 255, 255) -- Show the status bar height contentScaleYText = display.newText("contentScaleY: " .. tostring(display.contentScaleY), 50, 190, native.systemFont, 18) myText:setTextColor(255, 255, 255)
config.lua
application = { content = { width = 320, height = 480, scale = "Letterbox", fps = 60, imageSuffix = { ["@2x"] = 2, } } }