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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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