Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 791081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:46:44+00:00 2026-05-14T21:46:44+00:00

The datepicker in jQueryUI renders with a dynamic position. It renders according to its

  • 0

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 to render on screen. I need it to stay put and render in the same place every time, independent of the screen position or other circumstances. How can this be done with the jQueryUI datepicker? Other implementations of jQuery datepicker seem to have ways of doing this, but I don’t see a way of doing it for the UI version.

The answer doesn’t seem to be just modifying the css:

.ui-datepicker { width: 17em; padding: .2em .2em 0; (trying top/margin-top/position:relative, etc. here...)}

…since when the datepicker is created it dynamically creates top and left in element style. Haven’t found a way around this yet. One approach I saw is to give something like this in the beforeShow option:

beforeShow: function(input,inst){
                                inst.dpDiv.css({ 
                                   'top': input.offsetHeight+ 'px', 
                                   'left':(input.offsetWidth - input.width)+ 'px'
                                               });
                                }

This has some effect but the top and left properties are still being dynamically set after this is run when the datepicker renders. It’s still trying to render on screen. How do I get it to always render in the same spot? My next step is probably to go into the datepicker guts and start pulling things out. Any ideas?

Note that the answer (for the UI version) is not in:

  • how-to-change-the-pop-up-position-of-the-jquery-datepicker-control
  • change-the-position-of-jquery-ui-datepicker
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:46:44+00:00Added an answer on May 14, 2026 at 9:46 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

. Hello, I'm using jqueryui's datepicker, and it works great but there's a problem.
I am trying to find here http://jqueryui.com/demos/datepicker/#options how to initialize/show the datepicker according to
I'm looking through the docs for the jQuery UI Datepicker ( http://jqueryui.com/demos/datepicker/ ), but
Are there helpers for jquery ui? @Html.DatePicker(m=>m.Date) or @JQueryUI.DatePicker('DateFieldId'); I think it can be
I am trying to setup two date pickers like this http://jqueryui.com/demos/datepicker/#date-range . But if
I'm trying to use DatePicker from jQueryUI but get this error and didn't know
I'm playing with http://jqueryui.com/demos/datepicker/#date-range but need to fire/trigger a error if first date is
According to this documentation, http://jqueryui.com/demos/datepicker/#option-altFormat I can set a different date format for the
In my project which uses with jQueryUI's datepicker of plugins, but in this code,the
I like that jQueryUI datepicker is customizable enough to allow for a button to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.