Skip to content

The Group component doesn't match the size of its parent svg tagΒ #1321

@JoeVanGundy

Description

@JoeVanGundy

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.
'
Pasted Graphic

I'm getting the parent container size using <ParentSize/>:
image

And my scales look like this:
image

My plot looks like this:
image

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