z-index fix

This commit is contained in:
wareya committed 2017-12-08 18:15:54 -05:00
1 parent 8a8327471a
commit 2193a0147c
1 file changed
+2 -2
+2 -2
View File
@@ -52,7 +52,7 @@ function display_div (middle, x, y, time)
other[0].replaceChild(middle, other[0].firstChild);
let styletext = "max-width: 600px; position: absolute; top: " + (y+5) + "px; left: " + (x+5) + "px;";
styletext += "background-color: white; border-radius: 3px; border: 1px solid white;";
styletext += "background-color: white; border-radius: 3px; border: 1px solid white; z-index: 100000;";
other[0].style = styletext;
other[0].style.visibility = "visible";
@@ -62,7 +62,7 @@ function display_div (middle, x, y, time)
let outer = document.createElement("div");
outer.className = div_class;
let styletext = "max-width: 600px; position: absolute; top: " + (y+5) + "px; left: " + (x+5) + "px;";
styletext += "background-color: white; border-radius: 3px; border: 1px solid white;";
styletext += "background-color: white; border-radius: 3px; border: 1px solid white; z-index: 100000;";
outer.style = styletext;
outer.appendChild(middle);