-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adjust to content height #6
Comments
I am doing some test and will eventually merge, sorry, I was very busy the last weeks! :) |
Unfortunately this breaks the swiping animation on my browser (chromium 53) Here it is paused mid swipe, working normally with a fixed height: And here it is with it's too bad because it seems to work pretty well otherwise... I'm looking into it further |
I think I got it, you need to peg the page elements
Now my transitions all look good and everything seems to work as expected here is what the failure looks like in the debugger You can see my right-page div is being placed below the bottom of the screen, hence pegging top: 0px |
as a bonus it preserves scroll position for free |
If you add this line of css, the pages automatically adjust to the height of their content:
iron-swipeable-pages > .iron-selected { position: inherit; }
I would say this behaviour should be preferred opposed to always being forced to set an explicit height on the iron-swipable-pages element.
The text was updated successfully, but these errors were encountered: