#5585 closed bug (duplicate)
Datepicker Position Problem in IE 8
Reported by: | iratherscribble | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.11.0 |
Component: | ui.datepicker | Version: | 1.8 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
With an input at the bottom-left of the viewport and you click on it, the datepicker opens below, outside of the view. Scrollbar appears, but when you go to scroll, the datepicker is dismissed and the scrollbar disappears. In this case, there is no way to use the datepicker. Change script references to 1.7.2 and datepicker appears above the input and works as expected. This was a problem previously in ticket 3232. Regression in 1.8.
Attachments (2)
Change History (8)
Changed 13 years ago by
Attachment: | jqueryui18_datepicker.png added |
---|
comment:1 Changed 13 years ago by
i had the same problem.
I fixed it like in the patch for ticket 3232.
So at line 8387 change your code with
//2010/06/23 fix position in ie8 //old //var viewWidth = document.documentElement.clientWidth + $(document).scrollLeft(); //var viewHeight = document.documentElement.clientHeight + $(document).scrollTop(); // var browserWidth = (window.innerWidth || (document.documentElement && document.documentElement.clientWidth) || document.body.clientWidth); var browserHeight = (window.innerHeight || (document.documentElement && document.documentElement.clientHeight) || document.body.clientHeight); var viewWidth = browserWidth + $(document).scrollLeft(); var viewHeight = browserHeight + $(document).scrollTop(); //end fix
comment:3 Changed 10 years ago by
Milestone: | TBD → 1.11.0 |
---|
comment:5 follow-up: 6 Changed 9 years ago by
@mikesherov - This needs to be re-opened, as this is still an issue with IE8 on version 1.10.3
comment:6 Changed 9 years ago by
Replying to randjc:
@mikesherov - This needs to be re-opened, as this is still an issue with IE8 on version 1.10.3
The milestone for this ticket is 1.11.0, which means that it *should* still be broken in 1.10.3. If you are still having problems with the master branch, let us know.
datepicker behavior in 1.8