Skip to content

Positioning #2

Description

@closer9

When trying to use date_input inside of an already repositioned div, the calendar would not place itself in the correct position relative to the input field.

I don't know if this is the correct place to post this, but I fixed the problem by changing:
setPosition: function() {
var offset = this.input.offset();

to:
setPosition: function() {
var offset = this.input.position();

This fixed the problem with repositioned DIVs and does not seem to break it if the call is from a non-repositioned DIV.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions