Getting the corrct height for the placing the context menu

This commit is contained in:
wmwragg 2016-07-22 16:12:20 +01:00
parent 5d4b03c1f4
commit 9b318e8f61

View file

@ -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,