Is there a way to position the popover with left and top instead of using translate ? · Issue #145 · alexkatz/react-tiny-popover · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I have migrated from v4 to v7, I have made all the necessary code changes to make it work, but during render the popup is positioning itself with CSS translate property which makes components inside the popover position differently. As the popover content is dynamic in our project it is not possible to change all the content components. So is there a way to use CSS left and top property to position the popover?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
'translate' property makes it very problematic with some resolution on chrome because it moves all the time and it rerenders itself constantly. I resolved it locally by overriding translate property with top and left. Can you consider fixing this chrome bug in future releases, please?
Ditto on the issue experienced. Upgraded from v4 to v7 and the new translate positioning is causing positional rendering errors.
FYI for those investigating at home, this change was made during the switch to v6 (present in the earliest beta 6.0.0-beta release).
Will try to patch locally translate into top/left in a fork.
@tudor2004 The code for translate is here and here, presumably just replace it with top and left and that should work 🤷🏼♂️ .
EDIT: Created a fork, you can use it directly in your package.json via github:peteygao/react-tiny-popover-no-transform#3796802. The dist/ folder is included in master so it's pre-built.
Thanks for making this awesome plugin.
Recently I have migrated from v4 to v7, I have made all the necessary code changes to make it work, but during render the popup is positioning itself with CSS translate property which makes components inside the popover position differently. As the popover content is dynamic in our project it is not possible to change all the content components. So is there a way to use CSS left and top property to position the popover?
Thanks in advance.
The text was updated successfully, but these errors were encountered: