resort sprite, sprite outline, background, delete button zIndex

This commit is contained in:
Yueyu 2021-07-22 18:12:33 +08:00
parent 29f90362e9
commit ca55699744
2 changed files with 4 additions and 1 deletions

View file

@ -28,7 +28,8 @@ export default class Page {
this.sprites = JSON.stringify([]);
this.bkg = newDiv(this.div, 0, 0, 480, 360, {
position: 'absolute',
background: ScratchJr.stagecolor
background: ScratchJr.stagecolor,
zIndex: '-10',
});
this.bkg.type = 'background';
ScratchJr.stage.pages.push(this);

View file

@ -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'
});