Fixed layout issues with panorama.