Opened 10 years ago

Closed 9 years ago

#5489 closed bug (worksforme)

autocomplete zIndex

Reported by: ligi Owned by:
Priority: major Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8
Keywords: Cc:
Blocked by: Blocking:

Description

the zIndex for the autocomplete result list which is popping up is calculated with "this.element.zIndex() + 1"

the problem is that when the input element is not 'absolute'
'relative' 'fixed' the zIndex of the input is ignored but very useful for the Menu which is popping up.

In my example its an jquery autocomplete above an openlayers map - and the map was always over the auto complete list - i had no chance to get it above without tweaking jquery.ui.autocomplete.js ( its an dirty hack so i won't publish it as a patch here ) I'm not sure about how to do a real Patch which suits everyone. Perhaps passing an zIndex with the autocomplete Options is an option?

Change History (2)

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

Milestone: TBD1.9
Priority: minormajor

comment:2 Changed 9 years ago by Scott González

Resolution: worksforme
Status: newclosed

Simply setting the position of the input field to relative should make this work for you. We are considering alternative methods of handling z-index, but the current solution does work.

Note: See TracTickets for help on using tickets.