Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#5505 closed feature (wontfix)

Please, give us possibility not to use z-index for datepicker

Reported by: zyura Owned by:
Priority: major Milestone:
Component: ui.datepicker Version: 1.8
Keywords: z-index, zIndex Cc:
Blocked by: Blocking:

Description

In some cases it is much better to use CSS to set datepicker's z-index than calculate it basing on input's parents z-index.

For example, one page has a header with date inputs (with no z-index and no need to set position style) and other controls located below which have z-index set. For previous versions of the control it was easy to handle this issue just by writing one line in CSS file:

.ui-datepicker { z-index:1000; }

Proposed solution is to add two lines to the source code:

var ignoreZIndex = $.datepicker._get(inst, 'ignoreZIndex');
if (ignoreZIndex)
  inst.dpDiv.zIndex($(input).zIndex()+1);

This will improve datepicker's flexibility.

Change History (3)

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

Type: enhancementfeature

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

Resolution: wontfix
Status: newclosed

We're not going to support multiple ways to set the z-index.

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

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.