Переглянути джерело

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

tags/v0.8.0
Shaun 3 роки тому
джерело
коміт
7c6eabb70f
1 змінених файлів з 2 додано та 2 видалено
  1. +2
    -2
      src/client/ui/uiBase.js

+ 2
- 2
src/client/ui/uiBase.js Переглянути файл

@@ -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)


Завантаження…
Відмінити
Зберегти