-
-
Save igorpronin/cdcc7cad9e9ad3cc52f0 to your computer and use it in GitHub Desktop.
How to change the pop-up position of the jQuery DatePicker control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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