code cosmetics

This commit is contained in:
tophf 2017-12-09 00:03:07 +03:00
parent 9b4f76d776
commit d52664d11c

View File

@ -192,12 +192,11 @@ var hotkeys = (() => {
}
function adjustInfoPosition(debounced) {
const container = $('#hotkey-info');
if (debounced !== true) {
debounce(adjustInfoPosition, 100, true);
return;
}
const style = container.style;
const style = $('#hotkey-info').style;
if (installed.scrollHeight > installed.clientHeight) {
const entryRight = installed.firstElementChild.getBoundingClientRect().right;
style.setProperty('right', window.innerWidth - entryRight + 'px', 'important');