Adjust token menu to not hide rotation handle at 180deg

This commit is contained in:
Mitchell McCaffrey
2021-08-04 07:32:13 +10:00
parent 07b9f8f621
commit 3ad726f5ad
3 changed files with 9 additions and 11 deletions

View File

@@ -57,8 +57,8 @@ function TokenMenu({
setMenuLeft(
mapRect.left + imageRect.x + imageRect.width / 2 - 156 / 2
);
// Y 12px from the bottom
setMenuTop(mapRect.top + imageRect.y + imageRect.height + 12);
// Y 20px from the bottom
setMenuTop(mapRect.top + imageRect.y + imageRect.height + 20);
}
}
}