Bug Tracker

Opened 17 years ago

Closed 17 years ago

Last modified 12 years ago

#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:
Blocked by: Blocking:


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.



Change History (1)

comment:1 Changed 17 years ago by brandon

Resolution: invalid
Status: newclosed

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().

Note: See TracTickets for help on using tickets.