mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Consider y coord when determining bottom collision (#62403)
This commit is contained in:
parent
7a465f42a6
commit
b6f477ae03
@ -33,7 +33,7 @@ export const ContextMenu: React.FC<ContextMenuProps> = React.memo(
|
|||||||
const OFFSET = 5;
|
const OFFSET = 5;
|
||||||
const collisions = {
|
const collisions = {
|
||||||
right: window.innerWidth < x + rect.width,
|
right: window.innerWidth < x + rect.width,
|
||||||
bottom: window.innerHeight < rect.bottom + rect.height + OFFSET,
|
bottom: window.innerHeight < y + rect.height + OFFSET,
|
||||||
};
|
};
|
||||||
|
|
||||||
setPositionStyles({
|
setPositionStyles({
|
||||||
|
Loading…
Reference in New Issue
Block a user