-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Wrong positioning of popover when using RTL languages #10428
Conversation
top: `${ e.currentTarget.getBoundingClientRect().bottom + 10 }px`, | ||
left: `${ e.currentTarget.getBoundingClientRect().left - 10 }px` | ||
top: `${ e.currentTarget.getBoundingClientRect().bottom + 10 }px` | ||
// left: `${ e.currentTarget.getBoundingClientRect().left - 10 }px` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments
@@ -75,7 +78,7 @@ Template.popover.onRendered(function() { | |||
} | |||
|
|||
popoverContent.style.top = `${ top }px`; | |||
popoverContent.style.left = `${ left }px`; | |||
popoverContent.style.left = `${ isRtl() ? left : left }px`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left and Left? No need for conditional then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove all comments?
please remove the comments. |
@fifou17 actually this is another problem, but I will fix it here.. |
now you can just pass the anchor element as
currentTarget
and the script will find the right positionCloses #10068
before:
after: