This commit is contained in:
Mirco Wittrien 2019-10-22 23:10:51 +02:00
parent a3687511cc
commit b6c29f1f5e
3 changed files with 3 additions and 3 deletions

View File

@ -400,7 +400,7 @@ class ShowHiddenChannels {
}
if (htmlString) {
var width = window.outerWidth/2;
var tooltip = BDFDB.TooltipUtils.create(e.currentTarget, htmlString, {type:"right", selector:"showhiddenchannels-tooltip", html:true, style:`max-width: ${width < 200 ? 400 : width}px !important;`, delay:BDFDB.DataUtils.get(this, "amounts")}, "hoverDelay");
var tooltip = BDFDB.TooltipUtils.create(e.currentTarget, htmlString, {type:"right", selector:"showhiddenchannels-tooltip", html:true, style:`max-width: ${width < 200 ? 400 : width}px !important;`, delay:BDFDB.DataUtils.get(this, "amounts", "hoverDelay")});
var style = getComputedStyle(e.currentTarget);
tooltip.style.setProperty("top", BDFDB.getRects(tooltip).top - style.paddingBottom.replace("px","")/2 + style.paddingTop.replace("px","")/2 + "px");
}

View File

@ -125,7 +125,7 @@ class ShowImageDetails {
image.removeEventListener("mouseenter", image.mouseenterShowImageDetails);
if (BDFDB.DataUtils.get(this, "settings", "showOnHover")) {
image.mouseenterShowImageDetails = () => {
BDFDB.TooltipUtils.create(image, `<div class="image-details-tooltip-name">${attachment.filename}</div><div class="image-details-tooltip-size">${BDFDB.formatBytes(attachment.size)}</div><div class="image-details-tooltip-dimensions">${attachment.width}x${attachment.height}px</div>`, {type:"right", html:true, selector:"image-details-tooltip", delay:BDFDB.DataUtils.get(this, "amounts")}, "hoverDelay");
BDFDB.TooltipUtils.create(image, `<div class="image-details-tooltip-name">${attachment.filename}</div><div class="image-details-tooltip-size">${BDFDB.formatBytes(attachment.size)}</div><div class="image-details-tooltip-dimensions">${attachment.width}x${attachment.height}px</div>`, {type:"right", html:true, selector:"image-details-tooltip", delay:BDFDB.DataUtils.get(this, "amounts", "hoverDelay")});
};
image.addEventListener("mouseenter", image.mouseenterShowImageDetails);
}

View File

@ -116,7 +116,7 @@ class SpellCheck {
this.languages = Object.assign({}, BDFDB.LanguageUtils.languages);
this.languages = BDFDB.ObjectUtils.filter(this.languages, (lang) => {return lang.dic == true ? lang : null});
this.setDictionary(BDFDB.DataUtils.get(this, "choices"), "dictionaryLanguage");
this.setDictionary(BDFDB.DataUtils.get(this, "choices", "dictionaryLanguage"));
BDFDB.ModuleUtils.forceAllUpdates(this);
}