Fixed playback error and maximize issues for portrait screen

Fixed playback error where song would stop unexpectedly toward the end.
Also fixed maximize issue for screens in portrait orientation.