Skip to content

autosize:true doesn't respect div's max-height when its height isn't specified #2968

@antoinerg

Description

@antoinerg
Contributor

autosize: true resizes a chart according to the parent container's width and height.

However, if the parent container's size is determined by css' max-height, the chart is too tall and overflows.

Example https://codepen.io/antoinerg/pen/BOZWxx/

Activity

changed the title [-]`autosize:true` doesn't respect div's max-height[/-] [+]`autosize:true` doesn't respect div's max-height when its height isn't specified[/+] on Sep 20, 2018
antoinerg

antoinerg commented on Sep 25, 2018

@antoinerg
ContributorAuthor

Closed by #3033

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @antoinerg

        Issue actions

          `autosize:true` doesn't respect div's max-height when its height isn't specified · Issue #2968 · plotly/plotly.js