Position Coordinates not relative to Inject Point #112

Open
jayalfredprufrock opened this Issue Mar 29, 2012 · 0 comments

Comments

Projects
None yet
1 participant

Not sure if this is intentional, but when using the "inject" option to place the picker within a container, the picker's position is still being calculated relative to the document and not the container. It seems to me that if you are placing the picker within a container, you want to position it relative to the container (which should have position: relative). It's a quick fix if anybody agrees:

Within Picker.js, the function position() has a call to getCoordinates that should look like this:

element.getCoordinates(this.options.inject || document.body);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment