getBoundingClientRect
"Christian Linder" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody, I found this thread in the history, and I couldn't see any change in behavior in the FF3.1beta2 Does anybody happen to know whether that will be in 3.1 or whether I will still have to multiply by 3600? Best regards Christian On Oct 17, 4:19 pm, Axel Huizinga <a... <http://groups.google.com/groups/unlock?_done=/group/mozilla.dev.tech.sv g/browse_thread/thread/db7b90a314164fe0&msg=b902a39d6c66b065> @go2ghana.de> wrote: > Hi, > trying to get the bounds of an SVGElement with getBoundingClientRect > makes me some trouble. > See yourself athttp://go2ghana.net/devel/svg/devel.xhtml <http://go2ghana.net/devel/svg/devel.xhtml> > on the top is a div which reports as expected > below are two svg rect which report very small values of width and > height which > don't make sense to me yet. > Any ideas how to translate them topixel units? > Best, > Axel I answered this in the newsgroup. If you want to translate them in firefox 3.0, multiply them by 3600 but be careful because firefox 3.1 will produce the correct numbers. Best regards Robert