You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: