Backbuffer needs z-index

Since we don't rely on the DOM order for layers, we also cannot rely on it
for backbuffers. This change simply adds a sensible z-index to the
backbuffer container.
This commit is contained in:
ahocevar
2013-03-27 16:19:58 +01:00
parent 246d2d99d3
commit fe172ccf6e
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1049,7 +1049,7 @@
}
function test_createBackBuffer(t) {
t.plan(7);
t.plan(8);
var map = new OpenLayers.Map('map');
var layer = new OpenLayers.Layer.WMS('', '', {}, {
@@ -1083,6 +1083,7 @@
layer.applyBackBuffer(1);
t.ok(backBuffer != undefined,
'createBackBuffer returns a back buffer');
t.eq(layer.backBuffer.style.zIndex, '99', 'z-index of backbuffer correct.');
t.eq(backBuffer.childNodes[0].style.left, '0px',
'first tile has correct left');
t.eq(backBuffer.childNodes[0].style.top, '0px',