Fixed layout issue for the overlay view.