1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Reposition context menu now that the styling is final

This commit is contained in:
wmwragg
2016-07-27 18:14:46 +01:00
parent 46a643ac38
commit 867b14d2ca

View File

@@ -84,7 +84,7 @@ module.exports = React.createClass({
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;
var y = (elementRect.top + (elementRect.height / 2) + window.pageYOffset) - 43;
var y = (elementRect.top + (elementRect.height / 2) + window.pageYOffset) - 53;
var self = this;
ContextualMenu.createMenu(Menu, {
menuWidth: 188,