cta.js icon indicating copy to clipboard operation
cta.js copied to clipboard

Depth

Open vdms opened this issue 10 years ago • 7 comments

I am having trouble with a header and a footer that have position: fixed. When cta grows "VER LISTA DE PASSOS" , it grows behind the header, even changing z-index etc.

Seems that the animation is not happening above all elements.

01 02 03

vdms avatar May 13 '15 14:05 vdms

When I insert something like: dummy.style.setProperty('z-index', '999999', 'important');

It does work correctly.

Maybe as an option when calling cta? options.dummyIndex (...)

vdms avatar May 13 '15 17:05 vdms

Seems like good idea. Will look into this. Thanks.

chinchang avatar May 30 '15 05:05 chinchang

I was about to fork the project to fix this (to use with Bower), but a simple CSS override can fix the issue without messing with the script:

body > div:last-child {
  z-index: 999 !important;
}

However, this will probably break down if you have other scripts appending DIVs before the closing

tag.

jeremymouton avatar Sep 23 '15 01:09 jeremymouton

+1 for z Index option or something similar

PawelGIX avatar Oct 28 '15 15:10 PawelGIX

Is this project abandoned?

equinusocio avatar Jul 03 '17 12:07 equinusocio

Will take this up this weekend.

chinchang avatar Jul 05 '17 18:07 chinchang

any update on this one?

wendellpbarreto avatar May 20 '20 15:05 wendellpbarreto