Fix hiding control bar on small screens

If the screen is too small to show the complete control bar, the
control bar gets wrapped around and hiding the control bar doesn’t work
as expected