#415 ✓ staged

Add support for instance.position()

Reported by Rick | March 17th, 2011 @ 10:13 AM | in 0.5

I've noticed several plugins that require some form of DOM element position information and each is rolling their own solution, which will get cumbersome overtime. In an effort to reduce the amount of repetitive code, I'm implementing a "position" method, along these lines...

var $pop = Popcorn("#video");


// Returns an object that may look something like this...

top: X,
right: X,
bottom: X,
left: X,
width: X, 
height: X

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.

Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.

Shared Ticket Bins

Referenced by