clockpicker icon indicating copy to clipboard operation
clockpicker copied to clipboard

it can't visible in bootstrap modal window

Open vmkumar opened this issue 9 years ago • 4 comments

clock picker can't displaying inside bootstrap modal popup window, it showing modal overlay behind..

vmkumar avatar May 26 '15 11:05 vmkumar

It can be fixed with this style:

.popover.clockpicker-popover{
    z-index: 1050;
}

arall avatar Jun 03 '15 08:06 arall

.clockpicker-popover { z-index: 999999 !important; }

gayancc avatar Jul 07 '15 06:07 gayancc

we need a dynamic z-index, otherwise, the clockpicker z-index always be max. if the clockpicker in bootstrap modalA, then we open the modalB, we can find the clockpicker show in modalB. This is a problem.

shun634501730 avatar Oct 20 '16 01:10 shun634501730

add this to bootstrap-clockpicker.js

//resolved Clock appearing behind bootstrap modal var parentsZindex = []; element.parents().each(function(){ var itemZIndex = $(this).css('z-index'); if (itemZIndex !== 'auto' && itemZIndex !== 0) parentsZindex.push(parseInt(itemZIndex)); }); var zIndex = Math.max.apply(Math, parentsZindex) + 1; popover.css({ zIndex: zIndex })

chenqingze avatar Oct 25 '16 06:10 chenqingze