Changing constant resolution dimension based on portrait or landscape
Fixing bug in orientation support for only landscape left/right or only portrait/portrait upsidedown