Modify ↓
Ticket #767 (closed bug: invalid)
Error in parsing value for property 'left'. Declaration dropped.
| Reported by: | jd1@… | Owned by: | paul |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | dimensions | Version: | |
| Keywords: | error, parsing, propery, left | Cc: | |
| Blocking: | Blocked by: |
Description
After updating to your latest diminsions.js Revision 939, I get an error never before encountered. Error in parsing value for property 'left'. Declaration dropped.
This is the error in firefox, IE just thows something generic.
I use this syntax with offset().
pos=$('#'+id).offset(); popup[id].x=(pos.left+pos.width)+3; popup[id].y=pos.top+1;
Any quick recommendations on what to be looking for? I was previously using a version from around october 2006 without problems.
Thanks,
Jeremy
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

There was an API change in the favor of performance the extra properties returned by offset have been removed. The error is caused when trying to reference pos.width.
The offset method now only returns a left and top property and sometimes a scrollLeft and scrollTop.
You can get the width by using .width().