Getting the corrct height for the placing the context menu
This commit is contained in:
parent
5d4b03c1f4
commit
9b318e8f61
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ module.exports = React.createClass({
|
|||
var Label = sdk.getComponent('elements.Label');
|
||||
var elementRect = e.target.getBoundingClientRect();
|
||||
var x = elementRect.right;
|
||||
var y = elementRect.height + (elementRect.height / 2);
|
||||
var y = elementRect.top + (elementRect.height / 2);
|
||||
var self = this;
|
||||
ContextualMenu.createMenu(Label, {
|
||||
left: x,
|
||||
|
|
Loading…
Reference in a new issue