Skip to content

Detecting screen size problem #111

@Sylph

Description

@Sylph

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions