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

Prevent ul 'glide__slides' element from resizing on window resize #33

Open
Pickeringwareltd opened this issue May 21, 2019 · 1 comment

Comments

@Pickeringwareltd
Copy link

I have a container in a fixed position that contains a vue-glide component, I then have a container which overlays and scrolls above that component that also includes a vue-glide component.

Upon window resize, the vue glide component in the fixed container continuously gets larger, even when the window gets smaller.

The vue glide component in the non-fixed container does not do this.

I dont expect my users to increase screen size mid-use, is there a way to disable resizing of the vue glide component upon window resize to prevent this?

@Pickeringwareltd Pickeringwareltd changed the title Prevent ul component from resizing on window resize Prevent ul 'glide__slides' element from resizing on window resize May 22, 2019
@Pickeringwareltd
Copy link
Author

Pickeringwareltd commented Jun 4, 2019

For anyone who has a similar issue, even though it is admittedly a hack, I found that adding the carousel into a container with either fixed or absolute positioning prevented the bug from happening and allows the carousel to resize appropriately.

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