Bug Tracker

Modify

Ticket #2999 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

Exception when using .poistion()

Reported by: jrvan Owned by: brandon
Priority: major Milestone: 1.3
Component: offset Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

I'm using the latest nightly build, and it's also present in release build. I'm calling the new .position() function and getting this exception:

Error: uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :

Change History

comment:1 in reply to: ↑ description Changed 5 years ago by jrvan

Replying to jrvan:

I done some testing on it, I identified line 3464 as the problem (In the nightly build). This line:

	// Get correct offsets
			offset       = this.offset(),
			parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();

Specifically I think it is this part of that line causing the exception:

offsetParent.offset();

comment:2 Changed 5 years ago by flesler

  • need changed from Review to Test Case
  • Owner set to brandon
  • Component changed from core to offset

Your details are not quite enough to be able to handle this. Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem. Thanks.

comment:3 Changed 5 years ago by brandon

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

I can't seem to reproduce this issue. Feel free to reopen with a test case.

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.