Having the same problem.
Positioning doesn't work if called from the menu() function, neither
initial, nor setting it later, but does work if the .position() function
is used.
Don't know why it doesn't work with the menu function.
Tips would be welcome, it would be nicer to handle it within the menu()
function that creates the menu than outside it, in a separate function call.