Ticket #8637 (closed bug: invalid)
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: | ||
| Blocking: | Blocked by: |
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
Change History
comment:2 Changed 2 years ago by dmethvin
- Owner set to anonymous
- Status changed from new to pending
Please provide a complete example, preferably in jsFiddle. We can't investigate a code snippet.
comment:3 Changed 2 years ago by Da Scritch
Never understood how to use jsFiddle i try : http://jsfiddle.net/Vzsad/
jQuery function : undefined
My function : 39
comment:5 Changed 2 years ago by trac-o-bot
- Status changed from pending to closed
- Resolution set to invalid
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!
comment:6 Changed 2 years ago by Da Scritch
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 ?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Sorry, forgot to log in so the ticket is reported to anonymoius. I'm me.