Popper-core: [IE10] Wrong viewport boundaries computation

Created on 16 Apr 2017  路  21Comments  路  Source: popperjs/popper-core

I believe this is an issue on Popper's end, and although IE10 doesn't really matter anymore (works fine on IE11), just checking:


Demo

https://codepen.io/FezVrasta/full/QvyNvY/

Steps to reproduce the problem

Scroll down on IE10

What is the expected behavior?

Tooltips should be positioned correctly, sticking to the element

What went wrong?

Tooltip instead scrolls with the scrollbar

# BUG 馃悶 medium low core

All 21 comments

I need a test case based on the template provided in the issues. Or even better, a PR that introduces a failing test for your problem.

I have opened popper.js.org on IE10 and the examples work fine, the same happens for our test suite that passes on IE10 so at first I'd say it's a problem with Tippy.js?

I'll test the previous popper version with the new standalone tippy

I would suggest to add an automated test suite to Tippy if you want to avoid lot of problems in future. Automated tests are invaluable.

The old version works with tippy.standalone, so...

Ok then please provide the test case as required and I'll take a look

I'll definitely set up tests tomorrow for the library

What kind of test case do you need? I haven't written one in this type of scenario before

Any updates on this @atomiks ?

Sorry, not sure what you mean by edit the report template. Edit it with the test case? Can you give an example of what you need?

Take this:
https://codepen.io/FezVrasta/pen/wGqJEz

Update the code to make it reproduce the problem (particular markup, css, anything?)

I need a way to see the bug just opening the codepen without having to debug 3rd party code.

Ah okay, that makes it clear. I'll try to make a failing test

Okay here we go: https://codepen.io/anon/pen/QvbejQ

On IE10, it will scroll down with it rather than stick to the element.

Gif: https://i.gyazo.com/77cb6a3c82b7535f079d9fedd5895c94.mp4

How's that on Chrome I see the tooltip above the button? Is it expected? 馃槙

In the Pen I see you import Tippy.js and its CSS, can you get rid of them to make it easier to debug the problem pls?

Updated (2). The misalignment on Chrome was due to the html, body { margin: 2rem; }

Ok, so... we have problems with margins applied to html, nice... The tests we have seems useless in this case 馃槗 And we have a scrollTop problem in IE10...

Thank you

This (#217) should fix the problems with the positioning on all browsers.

Tomorrow I'll take a look at the IE10 specific bug.

Edit: confirmed that the first problem has been fixed:
image

Any idea when this will be fixed?

I think within today, but I have other things scheduled that needs my attention.

It's trickier than I thought, I added a failing test but I can't find a way to fix the problem without breaking other stuff.

Moving to priority low because the cross browser bugs have been fixed and there's only this IE10 bug remaining.

Tippy seems to work in IE10 properly now with 1.9.1, has it been fixed?

Edit: Seems like position: 'bottom' does not work, but not that big of a deal

Closing this because the codepen and Tippy work in IE10 now, guess you fixed it somehow...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gcanabate picture gcanabate  路  3Comments

NilsEnevoldsen picture NilsEnevoldsen  路  5Comments

diondiondion picture diondiondion  路  4Comments

nainardev picture nainardev  路  3Comments

ConneXNL picture ConneXNL  路  3Comments