-
+ {chevron}
diff --git a/src/skins/vector/css/common.css b/src/skins/vector/css/common.css
index 879561f91..aff9666e9 100644
--- a/src/skins/vector/css/common.css
+++ b/src/skins/vector/css/common.css
@@ -67,13 +67,20 @@ a:visited {
padding: 6px;
}
-.mx_ContextualMenu_chevron {
+.mx_ContextualMenu_chevron_right {
padding: 12px;
position: absolute;
right: -21px;
top: 0px;
}
+.mx_ContextualMenu_chevron_left {
+ padding: 12px;
+ position: absolute;
+ left: -21px;
+ top: 0px;
+}
+
.mx_ContextualMenu_field {
padding: 3px 6px 3px 6px;
cursor: pointer;
diff --git a/src/skins/vector/views/molecules/EventTile.js b/src/skins/vector/views/molecules/EventTile.js
index b686ef15b..534af3c7c 100644
--- a/src/skins/vector/views/molecules/EventTile.js
+++ b/src/skins/vector/views/molecules/EventTile.js
@@ -50,12 +50,12 @@ module.exports = React.createClass({
onEditClicked: function(e) {
var MessageContextMenu = sdk.getComponent('molecules.MessageContextMenu');
var buttonRect = e.target.getBoundingClientRect()
- var x = window.innerWidth - buttonRect.left;
+ var x = buttonRect.right;
var y = buttonRect.top + (e.target.height / 2);
var self = this;
ContextualMenu.createMenu(MessageContextMenu, {
mxEvent: this.props.mxEvent,
- right: x,
+ left: x,
top: y,
onFinished: function() {
self.setState({menu: false});