Side navigation
#8637 closed bug (invalid)
Opened March 25, 2011 10:35AM UTC
Closed April 14, 2011 08:06AM UTC
Last modified April 15, 2011 09:42PM UTC
Incorrect .left and .top values for SVG objects
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | offset | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have a svg element in a HTML5 page and wanted to geographically locate it for a title replacement.
If i use $('anyelement','svg').left or .top, the value is zero where it shouldn't on firefox 4.
Here is my workaround :
isSVG = (this.getBBox!==undefined);
left = isSVG ? this.getBoundingClientRect().left+window.pageXOffset : $(this).left
top = isSVG ? this.getBoundingClientRect().top+window.pageYOffset : $(this).top
Attachments (0)
Change History (6)
Changed March 25, 2011 10:36AM UTC by comment:1
Changed March 25, 2011 03:42PM UTC by comment:2
owner: | → anonymous |
---|---|
status: | new → pending |
Please provide a complete example, preferably in jsFiddle. We can't investigate a code snippet.
Changed March 25, 2011 05:32PM UTC by comment:3
Never understood how to use jsFiddle
i try :
jQuery function : undefined
My function : 39
Changed March 30, 2011 08:20PM UTC by comment:4
component: | unfiled → offset |
---|
Changed April 14, 2011 08:06AM UTC by comment:5
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Changed April 15, 2011 09:42PM UTC by comment:6
I lose track of the ticket because i filled it unloggued.
by the way, is there a link with http://bugs.jquery.com/ticket/3116 ?
Sorry, forgot to log in so the ticket is reported to anonymoius.
I'm me.