question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update SVG width and height

See original GitHub issue

Svg elements don’t seem to update when width / height properties change. Is it possible to resize an Svg element?

New to React/Native, so I might be missing something obvious.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
msandcommented, Feb 11, 2018
0reactions
msandcommented, Dec 9, 2018

Seems fixed, closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Scale SVG | CSS-Tricks
Any height or width you set for the SVG with CSS will override the height and width attributes on the <svg> . So...
Read more >
Resizing SVG in html? - Stack Overflow
Open your .svg file with a text editor (it's just XML), and look for something like this at the top: <svg ... width="50px"...
Read more >
How to resize a SVG image - Medium
1. Change width and height in XML format ... Open the SVG file with your text editor. It should show lines of code...
Read more >
How to Resize SVG in HTML - W3docs
In this tutorial, we want to demonstrate how you can resize SVG image in HTML. For that, you can change the values of...
Read more >
width - SVG: Scalable Vector Graphics - MDN Web Docs
The width attribute defines the horizontal length of an element in the user coordinate system. You can use this attribute with the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found