Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
getLogicalWidth() and getLogicalHeight() — Gideros Forum

getLogicalWidth() and getLogicalHeight()

moopfmoopf Guru
edited February 2012 in General questions
Hi,

I've seen elsewhere (I think it was @atilim) say that, even if you're designing for landscape, you should still enter the logical dimensions in portrait in your project settings, e.g. 320 x 480 instead of 480 x 320. However, I've just been scratching my head on getLogicalWidth and getLogicalHeight as, even in landscape, these still seem to work based on portrait. Is that correct? It's a little odd - in order to center something horizontally in landscape I have to use getLogicalHeight rather than getLogicalWidth which is what I'd expect. With this in mind as well, are there other places where I'll find this kind of disconnect between orientation and width and height?

Cheers,

Gareth

Comments

Sign In or Register to comment.