Open thomasjm opened 1 year ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
Thanks @thomasjm
Would you like to work on a fix or do you have ideas how to fix it?
I fixed it in my own Lumino project with a CSS change. This is necessary because of the change from absolute positioning to a CSS transform in #432. The CSS was essentially this:
.lm-Menu {
left: 0px;
top: 0px;
}
I'm guessing nobody noticed this problem before because JupyterLab etc. already have similar CSS. I think such CSS should be included directly in the Lumino CSS files so such fixes aren't needed on the user side.
Thanks @thomasjm
Make sense it is similar to https://github.com/jupyterlab/lumino/pull/595
Would you mind opening a PR to fix this? I would enforce those style rules in the JavaScript rather than adding CSS as the JS code handles the positioning and this should not be messed with.
You can get an idea where to set top and left by looking at #432 changes.
cc @krassowski - your input will be really appreciate on this one.
I would enforce those style rules in the JavaScript
I think the reason #432 stopped doing that was for DOM performance.
Description
Reproduce
cd lumino
npm install && npm run build
cd examples/example-menubar
npm install && npm run build
google-chrome index.html
(or browser of your choice)Expected behavior
Menu should open and look normal.
Context
I suspect this is related to https://github.com/jupyterlab/lumino/pull/432.