Browse Source

Fix bug in offset

RobinLinus 4 years ago
parent
commit
14ead247ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/scripts/ui.js

+ 1 - 1
client/scripts/ui.js

@@ -563,7 +563,7 @@ Events.on('load', () => {
         c.width = w;
         c.width = w;
         c.height = h;
         c.height = h;
         let offset = h > 380 ? 100 : 65;
         let offset = h > 380 ? 100 : 65;
-        offset = h > 800 ? 116 : h;
+        offset = h > 800 ? 116 : offset;
         x0 = w / 2;
         x0 = w / 2;
         y0 = h - offset;
         y0 = h - offset;
         dw = Math.max(w, h, 1000) / 13;
         dw = Math.max(w, h, 1000) / 13;