jesuspreethi / jpicker

Automatically exported from code.google.com/p/jpicker
0 stars 0 forks source link

z-index not configurable #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When jPicker is bound to an element on a jquery-ui dialog, it's default z-index 
of 10 is far lower than the dialog's z-index, which makes it impossible to use 
on a modal dialog.

In certain circumstances this can be worked around by re-setting the z-index 
with the jquery css method. But other times it is practically impossible, for 
example when loading jPicker on the fly. Since the document is already "ready", 
there is no way of waiting for jPicker to be loaded and bound before modifying 
it's css properties, unless we create some sort of recursive settimeout that 
checks for certain conditions.

The starting z-index should be configurable from the options that are passed in 
on initialization. Default can stay 10, but if a z-index is passed in it should 
use that instead. I should be able to do something like this:
$("input.color").jPicker({zIndex:1030});

Original issue reported on code.google.com by donjohn....@gmail.com on 31 May 2011 at 10:25

GoogleCodeExporter commented 8 years ago
I have the same problem.

I load jPicker on the fly and then i need to set the z-index.
I modify the code to do so. But now i cant update without modify the code.

Please expand the options.

Original comment by guy.walt...@googlemail.com on 12 Jul 2011 at 8:50

GoogleCodeExporter commented 8 years ago
Same here: the picker appears blow the block where the bound input box is.

Original comment by eye...@gmail.com on 31 Aug 2012 at 1:30