Fixes issues #48 and #49 for Windows Phone 8.

Fixed issues in Windows theme where Lumia devices such as the 640 and
other devices with small screens were not rendering properly.