Refactor so that chevron and menu can be positioned independantly
This commit is contained in:
parent
0660b9feff
commit
6e7e091117
3 changed files with 17 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue