Steps to replicate the issue (include links if applicable):
- Create a new Codex App on wiki (for example in a userscript, don't think this part is important)
- Add a Dialog component with content that scrolls
- Add a Lookup to the content of that Dialog
- add that little App to the page and open the dialog
- type a few characters to make the Lookup show some options
- scroll the content of the Dialog
What happens?:
The menu of the Lookup stays stuck in place where it was first rendered.
What should have happened instead?:
The menu of the Lookup stays attached to the Lookup as the Dialog content is scrolled.
Other information (browser name/version, screenshots, etc.):
A minimal failing example: https://test.wikipedia.org/wiki/User:Zvpunry/codexLookupMenuStuck.js
Use it like mw.loader.load( 'https://test.wikipedia.org/w/index.php?title=User:Zvpunry/codexLookupMenuStuck.js&action=raw&ctype=text/javascript' );