Skip to main content

Search and Top Navigation

#5505 closed feature (wontfix)

Opened April 12, 2010 01:36AM UTC

Closed October 11, 2012 05:47PM UTC

Last modified October 11, 2012 09:15PM UTC

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.

Attachments (0)
Change History (3)

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:1

type: enhancementfeature

Changed October 11, 2012 05:47PM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

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

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted