align context menus even better

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-01 14:05:33 +01:00
parent b5014282a4
commit 3b7b6eca6f
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ interface IState {
}
const contextMenuBelow = (elementRect) => {
const left = elementRect.left + window.pageXOffset - 6;
// align the context menu's icons with the icon which opened the context menu
const left = elementRect.left + window.pageXOffset - 9;
let top = elementRect.bottom + window.pageYOffset + 17;
const chevronFace = "none";
return {left, top, chevronFace};