useMaxWidth flag doesn't really use the max width #5038
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
These are the description and implementation of
useMaxWidth
.As we can see in the implementation, width is set as 100%, but an extra
max-width
attribute is added, which actually prevents the diagram from filling up the available space, as mentioned in the description.Current implementation, where the diagram does not actually fill up the space.
After removing the
max-width
style.If
useMaxWidth = false
, with viewport size smaller than the diagram.So,
useMaxWidth
is mandatory for shrinking, but breaks growing (after the width of the diagram).This could be the underlying reason for issues like this also.
Suggested Solutions
We need to handle this, maybe as a breaking change (by removing the
max-width
style), or by deprecatinguseMaxWidth
, and adding a newresponsive
flag or something.The text was updated successfully, but these errors were encountered: