Opened 9 years ago

Closed 7 years ago

#6263 closed bug (invalid)

Datepicker is opened in wrong position in IE6 when body has "position:fixed" in style

Reported by: maxbarbul Owned by: maxbarbul
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.5
Keywords: ie6 Cc:
Blocked by: Blocking:

Description

In attached example HTML you can see the demo of datepicker from UI site. Only I changed some links and set style="position: fixed" for BODY element (as we use in our app).

In this case datepicker appears in wrong position. Without position:fixed it's OK.

I found place in datepicker code where position:fixed is applied to widget container of datepicker. So I changed the condition to not meet BODY and HTML elements in search of parents (see attached patch).

Attachments (3)

datepicker.example.html (864 bytes) - added by maxbarbul 9 years ago.
This is example where you can see the problem
jquery.ui.datepicker.patch.txt (442 bytes) - added by maxbarbul 9 years ago.
This is the patch that fixes problem (for me it's OK)
datepicker.bug.PNG (5.2 KB) - added by maxbarbul 9 years ago.
Screen shot of bug

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by maxbarbul

Attachment: datepicker.example.html added

This is example where you can see the problem

Changed 9 years ago by maxbarbul

This is the patch that fixes problem (for me it's OK)

Changed 9 years ago by maxbarbul

Attachment: datepicker.bug.PNG added

Screen shot of bug

comment:1 Changed 7 years ago by Scott González

Milestone: TBD1.11.0

comment:2 Changed 7 years ago by mikesherov

Owner: set to maxbarbul
Status: newpending

Hi, and thanks for contributing! We're going to be phasing out IE6 support eventually, but I'd like to know what the use case for putting position: fixed on the body element is?

comment:3 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.