code cosmetics
This commit is contained in:
parent
9b4f76d776
commit
d52664d11c
|
@ -192,12 +192,11 @@ var hotkeys = (() => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function adjustInfoPosition(debounced) {
|
function adjustInfoPosition(debounced) {
|
||||||
const container = $('#hotkey-info');
|
|
||||||
if (debounced !== true) {
|
if (debounced !== true) {
|
||||||
debounce(adjustInfoPosition, 100, true);
|
debounce(adjustInfoPosition, 100, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const style = container.style;
|
const style = $('#hotkey-info').style;
|
||||||
if (installed.scrollHeight > installed.clientHeight) {
|
if (installed.scrollHeight > installed.clientHeight) {
|
||||||
const entryRight = installed.firstElementChild.getBoundingClientRect().right;
|
const entryRight = installed.firstElementChild.getBoundingClientRect().right;
|
||||||
style.setProperty('right', window.innerWidth - entryRight + 'px', 'important');
|
style.setProperty('right', window.innerWidth - entryRight + 'px', 'important');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user