tether icon indicating copy to clipboard operation
tether copied to clipboard

Tether doesn't update properly when target parent has `overflow-y: auto;`

Open jkillian opened this issue 10 years ago • 4 comments

I've encountered an issue with Tether where the position of the tethered element isn't updated properly when the parent of the target element has the CSS style overflow-y: auto. The initial position of the element is correct, but when the page is scrolled, the position of the element doesn't move alongside of the target.

If this one line of CSS is removed, things work correctly again. In addition, if there is a manual Tether.position() call made, the element is moved to the proper location.

I haven't had time to make a minimal repro of the bug, my apologies. I thought I'd check if there are any initial things I could try out to get things working properly.

jkillian avatar Nov 04 '15 23:11 jkillian

+1 Faced the same issue, using overflow-y: auto.

panzerdp avatar Dec 28 '15 15:12 panzerdp

Managed to make it work. Be sure that your scrollable container (the one with overflow-y: auto) has one of the styles for position: relative, absolute or fixed, and then tether will manage to detect the scroll parent.

panzerdp avatar Dec 28 '15 16:12 panzerdp

I'm having a similar issue. When I put position:relative in the parent container, Tether moves the elements outside the container.

jonagoldman avatar Feb 07 '16 15:02 jonagoldman

Any feedback on this? I also have similar issue, but position does not help :(

jniechcial avatar Sep 13 '16 14:09 jniechcial