Skip to content

Avoid refitting non-background rectangles - #4

Open
sircinnamon wants to merge 2 commits into
denisbrodbeck:masterfrom
sircinnamon:master
Open

Avoid refitting non-background rectangles#4
sircinnamon wants to merge 2 commits into
denisbrodbeck:masterfrom
sircinnamon:master

Conversation

@sircinnamon

Copy link
Copy Markdown
Contributor

Noticed recently that under some conditions, rectangles within the svg are using x="0", y="0" and a transform+translate to position them. This causes the refit to resize them incorrectly.

I've updated the regex to only match a rectangle that immediately follows the svg tag. I've also updated the test to prevent any regression.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant