Skip to content

No overflow at the top level in JupyterLab  #3247

@jasongrout

Description

@jasongrout

Description

The top-level widget box should scroll so you can see the overflow.

I think this may be the underlying issue for jupyterlab/jupyterlab#10763

Reproduce

On current master, execute:

HBox(layout=dict(width="2000px", height="50px", border="3px solid red"))

Note that in JupyterLab (3.1) you cannot scroll to see the full box:

Screen Shot 2021-08-06 at 5 13 25 PM

This is becaue the top-level jp-OutputArea-output div has the jupyter-widgets class, which masks its overflow:auto with overflow:visible:

Screen Shot 2021-08-06 at 5 14 51 PM

I think recently we added the jupyter-widgets class to this top-level element, but I can't find the issue nor where in the code it happens right now.

Expected behavior

That jp-OutputArea-output div should have overflow: auto, and quite possibly should not have the jupyter-widgets class applied.

Context

  • ipywidgets version current master on JLab 3.1
  • Operating System and version: macOS Catalina
  • Browser and version: Firefox

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions