That changes your workspace. If you just want to change how the ribbon is displayed in your current workspace, simply double click on the bar as I showed in my previous reply.
All you have to do is double click on the bar, where I'm showing in the image below. You may have to do this several times in order to get back to the ribbon interface.