mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 08:38:30 -05:00
Merge pull request #480 from yueyuzhao/issue/393-white-sprite
resort sprite, sprite outline, background, delete button zIndex
This commit is contained in:
commit
7a3c4d76dd
2 changed files with 3 additions and 0 deletions
|
@ -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';
|
||||
|
|
|
@ -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'
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue