Consider y coord when determining bottom collision (#62403)
This commit is contained in:
@@ -33,7 +33,7 @@ export const ContextMenu: React.FC<ContextMenuProps> = React.memo(
|
||||
const OFFSET = 5;
|
||||
const collisions = {
|
||||
right: window.innerWidth < x + rect.width,
|
||||
bottom: window.innerHeight < rect.bottom + rect.height + OFFSET,
|
||||
bottom: window.innerHeight < y + rect.height + OFFSET,
|
||||
};
|
||||
|
||||
setPositionStyles({
|
||||
|
||||
Reference in New Issue
Block a user