mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Getting the corrct height for the placing the context menu
This commit is contained in:
@@ -78,7 +78,7 @@ module.exports = React.createClass({
|
|||||||
var Label = sdk.getComponent('elements.Label');
|
var Label = sdk.getComponent('elements.Label');
|
||||||
var elementRect = e.target.getBoundingClientRect();
|
var elementRect = e.target.getBoundingClientRect();
|
||||||
var x = elementRect.right;
|
var x = elementRect.right;
|
||||||
var y = elementRect.height + (elementRect.height / 2);
|
var y = elementRect.top + (elementRect.height / 2);
|
||||||
var self = this;
|
var self = this;
|
||||||
ContextualMenu.createMenu(Label, {
|
ContextualMenu.createMenu(Label, {
|
||||||
left: x,
|
left: x,
|
||||||
|
|||||||
Reference in New Issue
Block a user