Merge pull request #480 from yueyuzhao/issue/393-white-sprite

resort sprite, sprite outline, background, delete button zIndex
This commit is contained in:
chrisgarrity 2021-07-30 17:34:38 -04:00 committed by GitHub
commit 7a3c4d76dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -44,6 +44,7 @@ export default class Sprite {
this.div = document.createElement('div'); this.div = document.createElement('div');
setProps(this.div.style, { setProps(this.div.style, {
position: 'absolute', position: 'absolute',
zIndex: -1,
left: '0px', left: '0px',
top: '0px' top: '0px'
}); });
@ -464,6 +465,7 @@ export default class Sprite {
this.div.appendChild(this.border); this.div.appendChild(this.border);
setProps(this.border.style, { setProps(this.border.style, {
position: 'absolute', position: 'absolute',
zIndex: -2,
left: '0px', left: '0px',
top: '0px' top: '0px'
}); });