Re-modularised the context menus

pull/21833/head
wmwragg 2016-07-27 10:41:24 +01:00
parent dca4702b7b
commit 4b26ac58af
3 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ module.exports = React.createClass({
},
onEditClicked: function(e) {
var MessageContextMenu = sdk.getComponent('rooms.MessageContextMenu');
var MessageContextMenu = sdk.getComponent('context_menus.MessageContextMenu');
var buttonRect = e.target.getBoundingClientRect()
// The window X and Y offsets are to adjust position when zoomed in to page

View File

@ -75,7 +75,7 @@ module.exports = React.createClass({
},
onBadgeClicked: function(e) {
var Menu = sdk.getComponent('rooms.NotificationStateContextMenu');
var Menu = sdk.getComponent('context_menus.NotificationStateContextMenu');
var elementRect = e.target.getBoundingClientRect();
// The window X and Y offsets are to adjust position when zoomed in to page
var x = elementRect.right + window.pageXOffset;