1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Fix dialpad positioning (#7446)

This commit is contained in:
Šimon Brandner
2021-12-23 16:02:59 +01:00
committed by GitHub
parent 5096455f64
commit 38ba198fea

View File

@@ -26,7 +26,6 @@ import DialpadContextMenu from "../../context_menus/DialpadContextMenu";
import { Alignment } from "../../elements/Tooltip"; import { Alignment } from "../../elements/Tooltip";
import { import {
alwaysAboveLeftOf, alwaysAboveLeftOf,
alwaysAboveRightOf,
ChevronFace, ChevronFace,
ContextMenuTooltipButton, ContextMenuTooltipButton,
} from '../../../structures/ContextMenu'; } from '../../../structures/ContextMenu';
@@ -175,7 +174,7 @@ export default class CallViewButtons extends React.Component<IProps, IState> {
let dialPad; let dialPad;
if (this.state.showDialpad) { if (this.state.showDialpad) {
dialPad = <DialpadContextMenu dialPad = <DialpadContextMenu
{...alwaysAboveRightOf( {...alwaysAboveLeftOf(
this.dialpadButton.current.getBoundingClientRect(), this.dialpadButton.current.getBoundingClientRect(),
ChevronFace.None, ChevronFace.None,
CONTEXT_MENU_VPADDING, CONTEXT_MENU_VPADDING,