Forum Archive

Is this a bug?

Sebastian
from scene import *
import sys

class Test(Scene):
    def setup(self):
        print self.size

    def draw(self):
        sys.exit()

run(Test())

The screen size of the iPad 2 in pixels is 768x1024, in portrait mode. But when running this script it looks like the height looses 20 pixels, both in landscape and in portrait, while the width stays like it is supposed to.

Output in landscape: Size(w=1024.0, h=748.0)
Output in portrait: Size(w=768.0, h=1004.0)

Is this supposed to happen? And if so, why doesn't it happen on my iPhone 4S as well? Can anyone else replicate this?

Tony550234

The title bar does not seem to go away on the iPad, but it does on the iPhone.

omz

Yes, the size of the scene doesn't include the status bar, which is 20 points high. On the iPhone, the status bar is hidden when a scene is run.

Sebastian

Oh, I see. Thanks guys ;)