Wrong height
leolux opened this issue ยท 4 comments
leolux commented
The height of the rendered component is higher than the height set with :height="200"
jsgv commented
Experiencing the same.
Setting the height to same size of window window.innerHeight
knash94 commented
This was an issue for me when the loader was too wide for the parent container
LeBenLeBen commented
width
and height
props are used to set the SVG viewBox ratio, it does not hard code the dimensions on the element currently. I think in some cases it might be great to have different values.
My suggestion would be to get closer to what react-content-loader does:
- Keep
width
andheight
props but without default values, apply them aswidth
andheight
attributes on the root SVG element if not empty - Add a
viewBox
prop to be applied on the root SVG element, defaults to0 0 {width} {height}
like it is now (if nowidth
orheight
is specified, use 400โ130).
egoist commented
๐ This issue has been resolved in version 2.0.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐