Properly size title and button depending on app orientation not device.

If an application is displaying in portrait mode but the device is in landscape position the title and buttons were incorrectly sized.