Resizable context menus

Depends on #434. Should fix issue #281.