-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor context menu badly positioned #122035
Comments
@rebornix I forgot where we settled on this one. Do you plan to investigate, or should I? |
@isidorn I can investigate |
I have investigated into this and my finding is the following:
@sbatten what is the benefit of using the shadowDom. Is it all right if we just do not use the shadow dom for the editor context menu on the iPad |
shadowDom preserves focus most closely with native dialogs by rendering the context menu as a child of the editor. trying to remember, but I think this is necessary for notebooks because focus in each cell is important. I do not recall clearly for this case. |
Okey. So I change that on iOS we do not use the shadowDom for the editor. Since without that the context menu positioning is broken on iOS. |
@isidorn @sbatten thanks for investigating into this, I didn't finish this in time. Having the context menu rendered in the shadow DOM avoid unnecessary For this particular issue, the position of the context menu is correct. |
An alternative workaround fix is to not react on relayouts when we get x and y to be 0. |
To verify:
|
iPad, sometime I can get the editor to render the context menu is a wrong place -> top left corner.
Easy to reproduce: attach an external mouse and use the right click to trigger a menu in the editor
@rebornix might you have an idea what this is? You can also give me a code pointer so I investigate futher..
The text was updated successfully, but these errors were encountered: