pvdung / ourlibrary

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

overlayElement(?) should check for z-index #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure about this, but what I know is that when I change an image
with a fade effect, if my image has a z-index > 0, it covers the overlaid
image and the fade cannot be seen.

My guess is that overlayElement should check for a z-index and set the
temporary element's z-index to elzIndex++.

Original issue reported on code.google.com by gabrielg...@gmail.com on 30 Mar 2010 at 5:32

GoogleCodeExporter commented 9 years ago
The issue (as we discussed by IM) is that the zIndex is declared with a CSS 
rule for 
a specific ID.  The temporary overlay image gets a temporary unique ID, so does 
not 
match the zIndex of the original.  As the overlay is always appended after the 
original in the DOM, it only needs to equal the zIndex of the original to 
appear on 
top.  The solution is to apply the zIndex with something other than an ID-based 
CSS 
rule.

I might just take your advice to check the zIndex of the original and force the 
overlay to equal it.  Would be friendlier and the additional code would not be 
expansive in terms of size or expensive in terms of performance.  Low priority 
at 
the moment though.

Thanks for the input!

Original comment by dmark.ci...@gmail.com on 30 Mar 2010 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by dmark.ci...@gmail.com on 30 Mar 2010 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by dmark.ci...@gmail.com on 23 Apr 2010 at 11:27

GoogleCodeExporter commented 9 years ago

Original comment by dmark.ci...@gmail.com on 13 May 2010 at 9:41