Skip to content

responsive doesn't work if a parent has padding and min-width: min-content #7491

@jendrikw

Description

@jendrikw

steps to reproduce:

  1. open this fiddle https://jsfiddle.net/rhdq9ynu/5/
  2. use ctrl+mousewheel to zoom out to 30%
  3. use ctrl+mousewheel to zoom back in to 100%
  4. notice that the plot now overflows its parent and the home icon in the top is no longer visible.

before

Image

after

Image

The key is this CSS:

#app {
  padding: 0px 100px;

  & > * {
    min-width: min-content;
  }
}

If you remove either the padding or the min-width everything works fine.

Both min-content and fit-content are buggy.

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