Merge pull request #1997 from oldbig/bugfix/tooltip_wrong_position

bugfix/tooltip_wrong_position: fixed
pull/2305/head
Tuğçe Küçükoğlu 2022-03-11 11:06:14 +03:00 committed by GitHub
commit 0d70b500e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -132,6 +132,10 @@ function align(el) {
alignTop(el); alignTop(el);
if (isOutOfBounds(el)) { if (isOutOfBounds(el)) {
alignBottom(el); alignBottom(el);
if (isOutOfBounds(el)) {
alignTop(el);
}
} }
} }
else if (modifiers.left) { else if (modifiers.left) {
@ -144,6 +148,10 @@ function align(el) {
if (isOutOfBounds(el)) { if (isOutOfBounds(el)) {
alignBottom(el); alignBottom(el);
if (isOutOfBounds(el)) {
alignLeft(el);
}
} }
} }
} }
@ -152,6 +160,10 @@ function align(el) {
alignBottom(el); alignBottom(el);
if (isOutOfBounds(el)) { if (isOutOfBounds(el)) {
alignTop(el); alignTop(el);
if (isOutOfBounds(el)) {
alignBottom(el);
}
} }
} }
else { else {
@ -164,6 +176,10 @@ function align(el) {
if (isOutOfBounds(el)) { if (isOutOfBounds(el)) {
alignBottom(el); alignBottom(el);
if (isOutOfBounds(el)) {
alignRight(el);
}
} }
} }
} }