Run make client-format to lint js code

This commit is contained in:
guerler
2022-02-16 16:19:59 -05:00
parent 7ac7323b1b
commit dc47129722
@@ -164,8 +164,10 @@ export default {
const p = document.getElementById("canvas-viewport");
const o = document.getElementById("canvas-container");
if (p && o) {
const left = -o.offsetLeft + (p.offsetWidth - el.offsetWidth) / 2 + this.offsetVaryPosition(OFFSET_RANGE);
const top = -o.offsetTop + (p.offsetHeight - el.offsetHeight) / 2 + this.offsetVaryPosition(OFFSET_RANGE);
const left =
-o.offsetLeft + (p.offsetWidth - el.offsetWidth) / 2 + this.offsetVaryPosition(OFFSET_RANGE);
const top =
-o.offsetTop + (p.offsetHeight - el.offsetHeight) / 2 + this.offsetVaryPosition(OFFSET_RANGE);
el.style.top = `${top}px`;
el.style.left = `${left}px`;
}