Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Width problem on IE 11 #26

Open
deraw opened this issue Aug 1, 2019 · 0 comments
Open

Width problem on IE 11 #26

deraw opened this issue Aug 1, 2019 · 0 comments

Comments

@deraw
Copy link

deraw commented Aug 1, 2019

Hi! First off, thanks for making this directive!

One of the teams I work with is using it and we detected a problem on IE 11.
With a top-sticky element, when we scroll down everything works fine, but when we scroll all the way up to the top of the page, the sticky element gets a width of 0 and still has the position: fixed; style.
We use the directive like this : v-sticky="stickyEnabled", stickyEnabled goes true when scrolling passed a certain point, and the height of the sticky element is modified because it's content changes (we add a placeholder to avoid "jumping").

I'm not sure this is related to this issue, but on IE the top-sticky class never gets removed: on line 212, two string are passed to classList.remove(), but on IE only one is accepted

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

No branches or pull requests

1 participant