Commit 7c6eabb7 authored by Big Bad Waffle's avatar Big Bad Waffle

fixed a silly issue where centered UIs weren't completely in the middle

parent fdd1ad7f
......@@ -95,8 +95,8 @@ define([
if (!pat[0])
return;
let posX = ~~((pat.width() / 2) - (el.width() / 2)) - 10;
let posY = ~~((pat.height() / 2) - (el.height() / 2)) - 10;
let posX = ~~((pat.width() / 2) - (el.width() / 2));
let posY = ~~((pat.height() / 2) - (el.height() / 2));
el.css('position', 'absolute');
if (x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment