Browse Source

Fix background animation in new Chrome

RobinLinus 5 years ago
parent
commit
955cc566db
1 changed files with 2 additions and 0 deletions
  1. 2 0
      client/scripts/ui.js

+ 2 - 0
client/scripts/ui.js

@@ -567,6 +567,8 @@ Events.on('load', () => {
     style.width = '100%';
     style.width = '100%';
     style.position = 'absolute';
     style.position = 'absolute';
     style.zIndex = -1;
     style.zIndex = -1;
+    style.top = 0;
+    style.left = 0;
     var ctx = c.getContext('2d');
     var ctx = c.getContext('2d');
     var x0, y0, w, h, dw;
     var x0, y0, w, h, dw;