menu: Fix the graphics origin in enum-based menus

The graphics origin was set after the elements were added, which messed
up their position.