You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Re-modularised the context menus
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user