Skip to content

Unnecessary scroll bars on plots with ipywidgets #248

@ianholst

Description

@ianholst

When you use ipywidgets to interact with a matplotlib plot, it shows these black scrollbars even when there is no need to scroll:

Image

This is due to this line of CSS, which specifies overflow: scroll on that image element:

const divStyle: Record<string, string | number> = { overflow: 'scroll', position: 'relative' }; // `overflow:scroll` is the default style used by Jupyter lab.

This should be changed to overflow: auto. Not sure what that comment in the code about Jupyterlab means since these scrollbars do not appear in Jupyterlab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions