Icons moving once config added #57
-
I am having an issue where after i create my SVG and add a config to one of the lamps, it moves the icon to the top left and makes it larger (seems to do this with any of the icons). I can not work out why it is doing it.
This is a zip of my SVG's and the css |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I tried your SVG, and got it working. I simply moved the ID from the parent 'layer' (i.e. Before: After: You can make that change in a text editor rather than loading it into Inkscape. I think the issue is due to the parent layer having a transform applied to it, which seems to get in the way. So by moving the ID down to the Let us know how you go. |
Beta Was this translation helpful? Give feedback.
Hi @instakill-sec
I tried your SVG, and got it working.
I simply moved the ID from the parent 'layer' (i.e.
<g>
element) down to the child 'layer' (i.e.<image>
element).Before:
After:
You can make that change in a text editor rather than loading it into Inkscape.
I think the issue is due to the parent layer having a transform applied to it, which seems to get in the way. So by moving the ID down to the
<image>
, floorplan swaps out the images without worrying about the transform which is being performed at the parent<g>
element.Let us know how you go.