Skip to main content

Bug Tracker

Side navigation

#2999 closed bug (worksforme)

Opened June 06, 2008 11:21AM UTC

Closed November 13, 2008 02:46AM UTC

Exception when using .poistion()

Reported by: jrvan Owned by: brandon
Priority: major Milestone: 1.3
Component: offset Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:
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 :

Attachments (0)
Change History (3)

Changed June 06, 2008 03:32PM UTC by jrvan comment:1

Replying to [ticket:2999 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();

Changed June 10, 2008 08:07PM UTC by flesler comment:2

component: coreoffset
need: ReviewTest Case
owner: → brandon

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.

Changed November 13, 2008 02:46AM UTC by brandon comment:3

resolution: → worksforme
status: newclosed

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