jupyter-ui icon indicating copy to clipboard operation
jupyter-ui copied to clipboard

Right click on the JupyterLabApp component makes the layout to shift up and open bottom panel

Open lneves12 opened this issue 1 year ago • 4 comments

Description

Right click on the JupyterLabApp component makes the layout to shift up and open bottom panel

Reproduce

81b0c760-405b-4727-bfac-98461d2d2d83.webm

Expected behavior

Context

  • latest master
  • chrome
  • using: jlpm run jupyter:ui:cra
Browser Output
Paste the output from your browser Javascript console here.

lneves12 avatar Feb 07 '24 05:02 lneves12

Thx @lneves12 for reporting. DOM event are indeed surprising with JupyterLab. We need to tackle that in a better way. Maybe wrapping the component in a div with "some" css can help mitigate that sideeffect.

echarles avatar Feb 07 '24 05:02 echarles

Do you know what’s the difference to the normal jupyter lab ui that can be causing this? I will investigate and see if I can help fixing this one

lneves12 avatar Feb 07 '24 12:02 lneves12

Do you know what’s the difference to the normal jupyter lab ui that can be causing this?

No idea, but mixing jupyterlab and react.js has proven to regularly such side effect. The good news is that it is fixable.

btw I have been discussing such side effects recently with @fcollonval (related to focus event ifrc)

echarles avatar Feb 07 '24 14:02 echarles

Try to define such a style, you can solve it

<style>
    body .lm-Menu {
        top: 1px
    }

  </style>

chenjpu avatar Mar 15 '24 00:03 chenjpu