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

I am trying to setup two date pickers like this http://jqueryui.com/demos/datepicker/#date-range . But if
I'm trying to incorporate jqueryUI's datepicker inside a partialview like this: <% using (Ajax.BeginForm(/EditData,
jQueryUI Datepicker documentation states that the minDate option can be set using a string
I'm using jqueryui datepicker to replace my existing popup date picker. I copy 100%
I'm working with the jqueryui datepicker on this page - http://jqueryui.com/demos/datepicker/ How do I
I am using the jquery datepicker ( http://jqueryui.com/demos/datepicker/ ). The datepicker on the demo
I'm using the jQuery datepicker from jqueryui.com and I have a problem changing the
I am using JQuery's UI datepicker: http://jqueryui.com/demos/datepicker/ implemented here: http://www.clients.eirestudio.net/old/ I want to use
I am trying to add the jQueryUI datepicker on a certain group of datefields,
I'm using jQuery UI, specifically Datepicker and Autocomplete, as follows: <script src=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js></script> <link href=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css

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.