mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
resort sprite, sprite outline, background, delete button zIndex
This commit is contained in:
parent
29f90362e9
commit
ca55699744
2 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,8 @@ 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',
|
||||||
background: ScratchJr.stagecolor
|
background: ScratchJr.stagecolor,
|
||||||
|
zIndex: '-10',
|
||||||
});
|
});
|
||||||
this.bkg.type = 'background';
|
this.bkg.type = 'background';
|
||||||
ScratchJr.stage.pages.push(this);
|
ScratchJr.stage.pages.push(this);
|
||||||
|
|
|
@ -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'
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue