Clearing the MainMenu field in the Form properties didn't work.
However what I have done is to add this in FormCreate.
pnlMenu.ElementHandle.style.setProperty ('position','relative');
I don't know if this is a valid way of doing it, I was just playing around.. But it worked.