I'm writing an SVG Javascript library and have found that Safari
doesn't scale an SVG once it has been created even if the width is
defined as a percentage if it's container. As a workaround, I thought
of wrapping an svg tag inside a div and having the Javascript object
that references the div watch for changes to the div size. It seemed
simple enough, just watch the offsetWidth and offsetHeight properties,
but Safari doesn't seem to allow watching. Scoured the web looking for
workarounds and found that IE uses something similar
"onpropertychanged" but Safari doesn't allow that either. Is there any
way to watch a property in Safari? Some custom syntax?
Thanks for any help
FWIW, here's the Javascript class I'm trying to write:
function JSSVGView(inContainer, inStyle)
{
var t = this;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden