usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

z-indexing issue on IE8 #303

Closed stephendeo closed 5 years ago

stephendeo commented 10 years ago

Hello,

I'm running into an issue where the first 3 out of 10 elements are behind the helper. I'm not sure why its doing that. I've checked the CSS on my end and everything seems to be ok. Is there something I can do to test the z-index for each slide?

Thanks Stephen

stephendeo commented 10 years ago

I've noticed that its not adding the introjs-relativePosition for that element. The element is a Anchor tag inside of a LI.

stephendeo commented 10 years ago

Its also not adding the introjs-fixParent to the parent element.

afshinm commented 10 years ago

Do you have any online demo of this problem?

FeistyMango commented 10 years ago

I believe I may have found the offending piece of code. I haven't confirmed this yet but the function _showElement(targetElement) checks the parent z-index, making following call: var zIndex = _getPropValue(parentElm, 'z-index');

However, in IE8, the property name is zIndex, not z-index. Thus, it is returning undefined and not applying the introjs-fixParent class appropriately.

connyay commented 10 years ago

@FeistyMango I think you are right! I am testing your hypothesis now...