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

Combine horizontal and vertical scrolling? #288

Open
trnc-ck opened this issue Jul 18, 2013 · 4 comments
Open

Combine horizontal and vertical scrolling? #288

trnc-ck opened this issue Jul 18, 2013 · 4 comments

Comments

@trnc-ck
Copy link

trnc-ck commented Jul 18, 2013

i have a horizontal slider where some slides are higher then the container-height. is there a way i can make the higher slide vertically scrollable? what's the best way here?

thanks!

@marcwhitbread
Copy link
Member

Variable slide height is a limitation of the plugin unfortunately. Workarounds are possible but not ideal. You could always use an element within your slides with overflow scroll in the CSS.

Another way would be to use JS to check the height of the content within the current slide and then resize the slider to match.

@trnc-ck
Copy link
Author

trnc-ck commented Jul 18, 2013

even if i set the .slide height to a higher value, i only can navigate left and right. is there a special property i have to set? thanks!

@marcwhitbread
Copy link
Member

It's sort of a hack so you will have to have a decent understanding of how CSS overflow and height work. The vertical navigation will leverage the browser scrolling while horizontal will utilize the plugin. I recommend putting an element within your slide element and applying the height and overflow: scroll to that element. That way your vertical scrolling will be isolated for each slide.

@VitaliyAT
Copy link

VitaliyAT commented Aug 4, 2016

I think here will be ask for combine vertical and horizontal scrolling for different width of screen. For example on wide monitors it looking better horizontally, but on phones it will be vertical. can be other rezones, but we put in options some variable that make "point of width" like a gate between them. or better function to rebuild it to vertical and user will do it by himself (maybe it will be necessary be horizontal from 1920 to 1280, vertical 1280-1024, horizontal 1024 to 640, vertical 640 to 0).

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

3 participants