mirror of https://github.com/vector-im/riot-web
Positional tweaks for the name, badge and context menu, to better match design in both normal and collapsed states
parent
398e56c9f9
commit
d16aa276e2
|
@ -120,7 +120,7 @@ module.exports = React.createClass({
|
|||
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;
|
||||
var x = elementRect.right + window.pageXOffset + 3;
|
||||
var y = (elementRect.top + (elementRect.height / 2) + window.pageYOffset) - 53;
|
||||
var self = this;
|
||||
ContextualMenu.createMenu(Menu, {
|
||||
|
|
Loading…
Reference in New Issue