We're using TinyMCE in a modal dialog, and we have to use the ui_container in order to keep floatpanels in place (see #3592).
TinyMCE appends the "dialogs" (such as "Insert Link") to document.body, disregarding the ui_container setting, while the floatpanels like dropdown options are still being appended to the specified ui_container. This causes the floatpanels like dropdown options inside TinyMCE dialogs to fall behind the dialog window as seen below.

I've tracked this down to the following line; the dialogs are rendered into document.body:
|
win = win.renderTo(document.body).reflow(); |
Here is a codepen that reproduces this behaviour
Also, if we don't use ui_container, the dropdown options are positioned incorrectly depending on the scroll position:
At the top of the window (good behaviour):

Scrolled down a bit, and then clicked the target dropdown (incorrectly positioned options):

Any ideas how to get around this?
We're using TinyMCE in a modal dialog, and we have to use the
ui_containerin order to keepfloatpanels in place (see #3592).TinyMCE appends the "dialogs" (such as "Insert Link") to
document.body, disregarding theui_containersetting, while thefloatpanels like dropdown options are still being appended to the specifiedui_container. This causes thefloatpanels like dropdown options inside TinyMCE dialogs to fall behind the dialog window as seen below.I've tracked this down to the following line; the dialogs are rendered into
document.body:tinymce/src/ui/main/ts/WindowManagerImpl.ts
Line 79 in ec35e25
Here is a codepen that reproduces this behaviour
Also, if we don't use
ui_container, the dropdown options are positioned incorrectly depending on the scroll position:At the top of the window (good behaviour):

Scrolled down a bit, and then clicked the target dropdown (incorrectly positioned options):

Any ideas how to get around this?