Fix context menu offset.
This commit is contained in:
parent
fdec4b36c9
commit
e36ae3cede
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ export default class Stickerpicker extends React.Component {
|
||||||
const buttonRect = e.target.getBoundingClientRect();
|
const buttonRect = e.target.getBoundingClientRect();
|
||||||
|
|
||||||
// The window X and Y offsets are to adjust position when zoomed in to page
|
// The window X and Y offsets are to adjust position when zoomed in to page
|
||||||
const x = buttonRect.right + window.pageXOffset - 37;
|
const x = buttonRect.right + window.pageXOffset - 42;
|
||||||
const y = (buttonRect.top + (buttonRect.height / 2) + window.pageYOffset) - 19;
|
const y = (buttonRect.top + (buttonRect.height / 2) + window.pageYOffset) - 19;
|
||||||
// const self = this;
|
// const self = this;
|
||||||
this.stickersMenu = ContextualMenu.createMenu(GenericElementContextMenu, {
|
this.stickersMenu = ContextualMenu.createMenu(GenericElementContextMenu, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue