Skip to content

Instantly share code, notes, and snippets.

@igorpronin
Created March 2, 2016 17:08
Show Gist options
  • Save igorpronin/cdcc7cad9e9ad3cc52f0 to your computer and use it in GitHub Desktop.
Save igorpronin/cdcc7cad9e9ad3cc52f0 to your computer and use it in GitHub Desktop.
How to change the pop-up position of the jQuery DatePicker control
// more here http://stackoverflow.com/questions/662220/how-to-change-the-pop-up-position-of-the-jquery-datepicker-control
beforeShow: function(input, inst) {
var cal = inst.dpDiv;
var top = $(this).offset().top + $(this).outerHeight();
var left = $(this).offset().left;
setTimeout(function() {
cal.css({
'top' : top,
'left': left
});
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment