Adjust token menu to not hide rotation handle at 180deg
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user