How to control positioning of jQueryUI datepicker

前端 未结 13 1354
一整个雨季
一整个雨季 2020-12-07 16:55

The datepicker in jQueryUI renders with a dynamic position. It renders according to its css if there\'s enough room for it, but if there isn\'t enough window space it tries

13条回答
  •  醉话见心
    2020-12-07 17:29

    Posting this in hopes that it will help others. At least as of v1.8.1 of datepicker, using 'window.DP_jQuery.datepicker' no longer works, because the pointer(right term?) now is named with a timestamp of its creation - so for example it would now be 'window.DP_jQuery_1273700460448'. So now, rather than using the pointer to the datepicker object, refer to it directly like this:

    $.extend($.datepicker,{_checkOffset:function(inst,offset,isFixed){return offset}});
    

    Many thanks for the answer below for getting me what I needed.

提交回复
热议问题