fix
This commit is contained in:
parent
f8a8a4581b
commit
39fb326d49
|
@ -42,7 +42,7 @@ function setPosition() {
|
||||||
let left = props.targetElement.offsetWidth;
|
let left = props.targetElement.offsetWidth;
|
||||||
let top = (parentRect.top - rootRect.top) - 8;
|
let top = (parentRect.top - rootRect.top) - 8;
|
||||||
|
|
||||||
maxHeight.value = window.innerHeight - rootRect.top - SCROLLBAR_THICKNESS;
|
maxHeight.value = window.innerHeight - SCROLLBAR_THICKNESS * 2;
|
||||||
|
|
||||||
if (rootRect.left + left + myRect.width >= (window.innerWidth - SCROLLBAR_THICKNESS)) {
|
if (rootRect.left + left + myRect.width >= (window.innerWidth - SCROLLBAR_THICKNESS)) {
|
||||||
left = -myRect.width;
|
left = -myRect.width;
|
||||||
|
|
Loading…
Reference in a new issue