diff --git a/src/editor/engine/Page.js b/src/editor/engine/Page.js index a51a17e..c6ab847 100644 --- a/src/editor/engine/Page.js +++ b/src/editor/engine/Page.js @@ -28,6 +28,7 @@ export default class Page { this.sprites = JSON.stringify([]); this.bkg = newDiv(this.div, 0, 0, 480, 360, { position: 'absolute', + zIndex: '-10', background: ScratchJr.stagecolor }); this.bkg.type = 'background'; diff --git a/src/editor/engine/Sprite.js b/src/editor/engine/Sprite.js index 72c98c4..785b428 100755 --- a/src/editor/engine/Sprite.js +++ b/src/editor/engine/Sprite.js @@ -44,6 +44,7 @@ export default class Sprite { this.div = document.createElement('div'); setProps(this.div.style, { position: 'absolute', + zIndex: -1, left: '0px', top: '0px' }); @@ -464,6 +465,7 @@ export default class Sprite { this.div.appendChild(this.border); setProps(this.border.style, { position: 'absolute', + zIndex: -2, left: '0px', top: '0px' });