Basically, we know that line 47 RNFactory
local screenX, screenY = MOAIEnvironment.screenWidth, MOAIEnvironment.screenHeight
has changed to
local screenX, screenY = MOAIEnvironment.horizontalResolution, MOAIEnvironment.verticalResolution
on newer MOAISDK builds,
But this still doesn't take into account the status bar size in several devices I've tested (Archos 70 IT running Android 2.2)
I have to replace line 75-76
RNFactory.width = lwidth RNFactory.height = lheight
with
RNFactory.width, RNFactory.height = MOAIGfxDevice.getViewSize()
to get the proper screen size so that the viewport doesn't overlap with the status bar on the archos, but it the bottom is still cut off when using HTC inspire (running Jelly Bean). I'll research more on this.
Basically, we know that line 47 RNFactory
local screenX, screenY = MOAIEnvironment.screenWidth, MOAIEnvironment.screenHeighthas changed to
local screenX, screenY = MOAIEnvironment.horizontalResolution, MOAIEnvironment.verticalResolutionon newer MOAISDK builds,
But this still doesn't take into account the status bar size in several devices I've tested (Archos 70 IT running Android 2.2)
I have to replace line 75-76
RNFactory.width = lwidth RNFactory.height = lheightwith
RNFactory.width, RNFactory.height = MOAIGfxDevice.getViewSize()
to get the proper screen size so that the viewport doesn't overlap with the status bar on the archos, but it the bottom is still cut off when using HTC inspire (running Jelly Bean). I'll research more on this.