File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 3
3
height : 100% ;
4
4
top : 0 ;
5
5
left : 0 ;
6
- position : fixed ;
6
+ position : absolute ;
7
7
margin : 0 ;
8
8
padding : 0 ;
9
9
z-index : 0 ;
Original file line number Diff line number Diff line change 3
3
height : 100% ;
4
4
top : 0 ;
5
5
left : 0 ;
6
- position : fixed ;
6
+ position : absolute ;
7
7
margin : 0 ;
8
8
padding : 0 ;
9
9
z-index : 20 ;
20
20
left : 0 ;
21
21
margin : 0 ;
22
22
padding : 0 ;
23
- position : fixed ;
23
+ position : absolute ;
24
24
background-color : # 252525 ;
25
25
background-size : cover;
26
26
background-repeat : no-repeat;
87
87
}
88
88
89
89
/* Greeter Screen */
90
- # screen-greeter {
90
+ # screen-greeter . screen {
91
91
top : 0 ;
92
+ position : fixed;
92
93
pointer-events : unset;
93
94
transform : translateZ ();
94
95
transition :
Original file line number Diff line number Diff line change @@ -58,8 +58,13 @@ class Backgrounds {
58
58
}
59
59
60
60
_updateBackgroundImages ( ) {
61
- for ( let background of this . _backgrounds ) {
62
- background . style . backgroundImage = `url('${ this . _backgroundCurrentPath } ')` ;
61
+ let dummyImg = document . createElement ( 'img' ) ;
62
+ dummyImg . src = this . _backgroundCurrentPath ;
63
+ dummyImg . onload = ( ) => {
64
+ const src = `url('${ dummyImg . src } ')` ;
65
+ for ( let background of this . _backgrounds ) {
66
+ background . style . backgroundImage = src ;
67
+ }
63
68
}
64
69
}
65
70
You can’t perform that action at this time.
0 commit comments