jQuery datepicker causes page overflow

Posted by nc3b on Stack Overflow See other posts from Stack Overflow or by nc3b
Published on 2010-04-22T16:20:19Z Indexed on 2010/04/22 16:23 UTC
Read the original article Hit count: 620

Filed under:
|
|
|

I am using the datepicker control from jQuery-ui 1.8. from-date is a text input. I am attaching a very simple datepicker:

$('#from-date').datepicker();

This causes the page to overflow (vertical scrollbar), which I am trying to avoid. As soon as I click the from-date, the datepicker control appears, and the scrollbar dissapears. After dismissing the datepicker, the scrollbar doesn't appear anymore.

The text field is inside a div that has overflow:auto and a fixed height and width. I suspect it's a z-index issue.

What am I doing wrong ? How would I debug this ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript