Fix context menu offset.

pull/21833/head
Richard Lewis 2018-03-08 17:33:07 +00:00
parent fdec4b36c9
commit e36ae3cede
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ export default class Stickerpicker extends React.Component {
const buttonRect = e.target.getBoundingClientRect();
// 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 self = this;
this.stickersMenu = ContextualMenu.createMenu(GenericElementContextMenu, {