Bug Tracker

Modify

Ticket #767 (closed bug: invalid)

Opened 6 years ago

Last modified 15 months ago

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

comment:1 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.