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

Layout jump after init #149

Closed
alvarotrigo opened this issue Dec 17, 2020 · 2 comments
Closed

Layout jump after init #149

alvarotrigo opened this issue Dec 17, 2020 · 2 comments

Comments

@alvarotrigo
Copy link

Before initialising swipe the different "slides" of the swipe element are visible or at least taking space in the page layout.
Then, once it initialises they collapse in a single row and take the space / height they would finally take on the page.

This can be tested on the main page:
https://swipe.js.org/

By putting a breakpoint just before the initialisation:
image

Here you can see the huge white space:
image

Is there any way to prevent this jump?

@lyfeyaj
Copy link
Owner

lyfeyaj commented Dec 18, 2020

You can set height or max-height to swipe container and remove it after initialized

@alvarotrigo
Copy link
Author

Yeap, that did the trick. Thanks.

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

2 participants