Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Position Coordinates not relative to Inject Point #112

Open
jayalfredprufrock opened this Issue · 0 comments

1 participant

@jayalfredprufrock

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
Something went wrong with that request. Please try again.