From 9b318e8f610af905c6b7b1aab82e98405a011a2e Mon Sep 17 00:00:00 2001 From: wmwragg Date: Fri, 22 Jul 2016 16:12:20 +0100 Subject: [PATCH] Getting the corrct height for the placing the context menu --- src/components/views/rooms/RoomTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index f0ac208ef9..48cb345d91 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -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,