Set horizontal margin for even better consistency
This commit is contained in:
parent
6d6b03dfe2
commit
68e5b5a84a
2 changed files with 8 additions and 8 deletions
|
|
@ -119,7 +119,7 @@ onMounted(() => {
|
|||
}
|
||||
|
||||
const rect = props.source.getBoundingClientRect();
|
||||
const x = Math.max(2, ((rect.left + (props.source.offsetWidth / 2)) - (300 / 2)) + window.scrollX);
|
||||
const x = Math.max(1, ((rect.left + (props.source.offsetWidth / 2)) - (300 / 2)) + window.scrollX);
|
||||
const y = rect.top + props.source.offsetHeight + window.scrollY;
|
||||
|
||||
top.value = y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue