Explorar o código

Fix bug in offset

RobinLinus %!s(int64=4) %!d(string=hai) anos
pai
achega
14ead247ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/scripts/ui.js

+ 1 - 1
client/scripts/ui.js

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