floating-ui: Wrong positioning if popper is child of positioned parent

CodePen demo

https://codepen.io/anon/pen/EXQeKp

Steps to reproduce the problem

  1. Open https://popper.js.org/
  2. Open devtools.
  3. Find in tab Elements this element id="page-wrapper"
  4. Set CSS props position: absolute
  5. A lot of tooltips don’t work (especially tooltips with top & bottom position)

What is the expected behavior?

The expected behaviour - all works good and the position of parent element won’t crash the tooltips position.

What went wrong?

chrome_2017-06-30_09-43-16

Any other comments?

Also in this cool lib - https://github.com/atomiks/tippyjs/issues/70

P.S. Your lib also f*cking awesome

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Unfortunately the latest Popper (1.12.5+) has a bug when updating a popper’s position usually when it’s near the viewport edges. If the bug is not an issue for you, you can use tippy.standalone.js + the latest Popper.js instead.

Currently, Tippy uses 1.12.4 because of that issue. I’m hoping he is able to fix it soon so it can be updated…

I need a reproducible codepen as requested by the issue template you ignored.