Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2020-09-23 07:54:14 +02:00
parent 3c53c4b36c
commit f6e9bcb62a
1 changed files with 1 additions and 1 deletions

View File

@ -1324,7 +1324,7 @@ module.exports = (_ => {
else if (type == "left" || type == "right") { else if (type == "left" || type == "right") {
if (top < 0) { if (top < 0) {
const bRects = BDFDB.DOMUtils.getRects(document.querySelector(BDFDB.dotCN.titlebar)); const bRects = BDFDB.DOMUtils.getRects(document.querySelector(BDFDB.dotCN.titlebar));
const barCorrection = (bRects.width || 0) >= Math.round(75 * window.outerWidth / aRects.width) ? bRects.height : 0; const barCorrection = (bRects.width || 0) >= Math.round(75 * window.outerWidth / aRects.width) ? (bRects.height + 5) : 0;
itemLayer.style.setProperty("top", `${5 + barCorrection}px`, "important"); itemLayer.style.setProperty("top", `${5 + barCorrection}px`, "important");
tooltipPointer.style.setProperty("margin-top", `${top - 10 - barCorrection}px`, "important"); tooltipPointer.style.setProperty("margin-top", `${top - 10 - barCorrection}px`, "important");
} }