View Single Post
Old 11-20-2015, 10:23 AM   #162
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by RbnJrg View Post
Great job!! The svg image managment is perfect; just I would made the following change in your dummy.svg file:

1. Instead of:

Code:
<svg id="dummysvg" xmlns="http://www.w3.org/2000/svg" height="60" viewBox="0 0 200 60" width="100" version="1.1">
I would use:

Code:
<svg id="dummysvg" xmlns="http://www.w3.org/2000/svg" height="60" viewBox="0 0 200 60" width="200" preserveAspectRatio="none" version="1.1">
Of that way, the svg image will occup the space of the original svg image. (of course, the text "SVG image" will be a bit distorted ) What do you thing?
Thank you

Yes, yours is much better, all the other dummy images may also be distorted according to css values, so no reason for the dummy svg to be different.

I'll change the dummy.svg file and repost now. (The width="100" was a typo error in mine, anyway . It should have been "200"). The preserveAspectRatio="none" is a good idea. Thanks.
jackie_w is offline   Reply With Quote