shipshapecode / tether

A positioning engine to make overlays, tooltips and dropdowns better

Home Page:https://tetherjs.dev/docs/welcome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is tether connected to scroll event?

prajapati-parth opened this issue · comments

Hello,
I'm using tether along with my react components and it works great as far as position is concerned.

But the DOM element that I specify to the element remains hidden until a scroll is done. As I said the position is perfect but the element is visible only after a horizontal or vertical scroll event of the browser is fired!

Thanks.

Yes, Tether recalculates position when a scroll event occurs. If you need to force that calculation, you can call window.Tether.position().