Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Bug in reposition.offset when container overflow-x and overflow-y are different #843

Open
m1lk1way opened this issue Mar 6, 2018 · 0 comments

Comments

@m1lk1way
Copy link

m1lk1way commented Mar 6, 2018

if(!scrolled && (overflow = $.css(parent, 'overflow')) !== 'hidden' && overflow !== 'visible') { scrolled = $(parent); }

This code gives different results in different browsers (Edge and Chrome for example) for parent which overflow-x and overflow-y are set to different values (overflow-x: hidden, overflow-y: auto) as it checks only "overflow" (not overflow-x or overflow-y) property.

As side-effect in Edge, tooltip gets extra position recalculation/adjustment according to scroll position during scrolling.
Here the gif with behaviour (browser Edge, scrollable container with overflow-x: hidden, overflow-y: auto, and this container passed as position.container to qtip among other options).

bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant