You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't make it working properly when my svg is responsive, I mean without explicitly giving width and height attributes but just giving a viewBox in a div container.
In that case, the plugin works well with x and y values in the viewBox coords for the text positioning, but other options like width and maxHeight are displaying wrong.
I so tried to give the x and y values in the viewBox coords system and the width and maxHeight of the bounds of the text in real screen pixels dimensions, that works, but not for alignment like vAlign that give a wrong translate(a,b) for multilines, so the text box is not well positioned.
Could you help me ? Do you have a demo with responsive svg and viewBox ?
Thanks a lot
Pierre M
The text was updated successfully, but these errors were encountered:
Hi,
I can't make it working properly when my svg is responsive, I mean without explicitly giving width and height attributes but just giving a viewBox in a div container.
In that case, the plugin works well with x and y values in the viewBox coords for the text positioning, but other options like width and maxHeight are displaying wrong.
I so tried to give the x and y values in the viewBox coords system and the width and maxHeight of the bounds of the text in real screen pixels dimensions, that works, but not for alignment like vAlign that give a wrong translate(a,b) for multilines, so the text box is not well positioned.
Could you help me ? Do you have a demo with responsive svg and viewBox ?
Thanks a lot
Pierre M
The text was updated successfully, but these errors were encountered: