Refactor so that chevron and menu can be positioned independantly

This commit is contained in:
wmwragg 2016-07-27 16:09:07 +01:00
parent 0660b9feff
commit 6e7e091117
3 changed files with 17 additions and 8 deletions

View file

@ -254,9 +254,10 @@ module.exports = React.createClass({
// The window X and Y offsets are to adjust position when zoomed in to page
var x = buttonRect.right + window.pageXOffset;
var y = buttonRect.top + (e.target.height / 2) + window.pageYOffset;
var y = (buttonRect.top + (e.target.height / 2) + window.pageYOffset) - 19;
var self = this;
ContextualMenu.createMenu(MessageContextMenu, {
chevronOffset: 10,
mxEvent: this.props.mxEvent,
left: x,
top: y,