Fixed a few issues affecting insets and offsets in orientations other than portrait.