The Group component doesn't match the size of its parent svg tag #1322
Replies: 1 comment
-
|
Hey @JoeVanGundy 👋 I'm going to convert this to a discussion because I don't think it's an issue. It could be useful to share a sandbox to tinker more, but overall I don't thing Again, a sandbox would be useful, but I think your
Hope that helps, I think to debug more I would need a sandbox to tinker with. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I'm trying to make a
<LinePath/>fit perfectly inside of a box.No matter what I try, it seems that the Group component always has a smaller size that it should.
Meaning I need to arbitrarily add margins to the plot which causes some jank when I try to reuse the plots.
Is there something I need to do to always make sure the group takes the size of its parent
<svg/>tag?Or is there something wrong with responsiveness of the components?
What the error looks like. The group should be fitting inside of the black border.

My expectation would be that it's size is 219px by 60px from the params derived from the ParentSize compnent.
'
I'm getting the parent container size using

<ParentSize/>:And my scales look like this:

My plot looks like this:

Beta Was this translation helpful? Give feedback.
All reactions