summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-19 18:01:46 +0300
committerDevaev Maxim <[email protected]>2020-07-19 18:02:04 +0300
commit0d9edb277ff2c9f3c898a0fda427afb33ece1dc9 (patch)
treed1014d1064508ee5da5313ef1f3ca3f78800bd2d
parent903382fda501e3c5f54d0b82e0067139ab5e11f7 (diff)
another js hack
-rw-r--r--web/share/js/wm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js
index 18ae5957..ee4da180 100644
--- a/web/share/js/wm.js
+++ b/web/share/js/wm.js
@@ -204,7 +204,7 @@ function __WindowManager() {
let el_menu = el_button.parentElement.querySelector(".menu");
if (el_button === el_a && window.getComputedStyle(el_menu, null).visibility === "hidden") {
let rect = el_menu.getBoundingClientRect();
- let offset = self.getViewGeometry().right - (rect.x + el_menu.clientWidth);
+ let offset = self.getViewGeometry().right - (rect.x + el_menu.clientWidth + 2); // + 2 is ugly hack
if (offset < 0) {
el_menu.style.right = "0px";
} else {