Initial position of popper and arrow elements off when margins exist
See original GitHub issueUsing the react-popper
repository (version 0.8.0) and running npm run dev
, I am seeing the initial positioning of popper and arrow elements slightly “off” when margins exist on the popper element. I’m not sure if this is react-popper
or popper.js
causing this, but since I am using react-popper
, I thought I would at least start here to see if others are seeing the same issue. If the popper element doesn’t have any margins, it seems to work correctly.
In the first screenshot, I am showing the appearance of the example page immediately after the initial page load. I’ve annotated the issues I am seeing. The second screenshot shows it properly adjusted after a small scroll of the page.
I am able to work around this issue by removing margin
styles and replacing them with adjusted top
or left
position values (with an !important
to override inline styles), but it still seems like there is a minor issue here.
Screenshot 1 (initial page load)
Screenshot 2 (after scrolling)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top GitHub Comments
Stuff like that usually happens when Popper is initialized while the element is still being rendered
On a separate note, I am seeing the following error when attempting to do an
npm install
:I am still able to run
npm run dev
and see the examples, but this should probably be cleaned up.