chore(client): tweak ui
This commit is contained in:
parent
242538ddce
commit
f3b0c6f1e7
2 changed files with 21 additions and 11 deletions
|
|
@ -116,7 +116,7 @@ const setPosition = () => {
|
|||
let top: number;
|
||||
|
||||
if (props.targetElement) {
|
||||
left = (rect.left + window.pageXOffset) + props.innerMargin;
|
||||
left = (rect.left + props.targetElement.offsetWidth + window.pageXOffset) + props.innerMargin;
|
||||
top = rect.top + window.pageYOffset + (props.targetElement.offsetHeight / 2);
|
||||
} else {
|
||||
left = props.x + props.innerMargin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue