Re: svg getBoundingClientRect
Robert Longson <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <e4a0b60b-f78a-4e47-8d70-5d58534d31bf@m73g2000hsh.googlegroups.com> |
On Oct 17, 4:19 pm, Axel Huizinga <[email protected]> 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 > 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