Add a context menu to the toolbar to change the position of the text

Closes #1145.