diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js
index 42dbe78630..ef578d47db 100644
--- a/src/components/views/rooms/EventTile.js
+++ b/src/components/views/rooms/EventTile.js
@@ -263,7 +263,7 @@ module.exports = WithMatrixClient(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) - 19;
+ var y = (buttonRect.top + (buttonRect.height / 2) + window.pageYOffset) - 19;
var self = this;
ContextualMenu.createMenu(MessageContextMenu, {
chevronOffset: 10,
@@ -465,7 +465,7 @@ module.exports = WithMatrixClient(React.createClass({
}
var editButton = (
-
+
);
var e2e;