Position the dropdown menu relative to the next positioned parent instead of the document.

This patch fixes the positioning of the dropdown menu in our (@mrhenry) custom layout. It doesn't affect the default AA layout.