joelmukuthu / angular-snapscroll

Vertical scroll-and-snap functionality in angular
http://joelmukuthu.github.io/angular-snapscroll/
MIT License
56 stars 18 forks source link

Support child elements with height greater than snapscroll element height #26

Closed m0ngr31 closed 8 years ago

m0ngr31 commented 8 years ago

I have an ng-repeat where the elements are all columns that are horizontal, and if there are too many to fit on the screen, it'll overflow to a new row (but not a new div). Is there a way to make the snapscroll directive automatically handle this situation and just scroll to the next row?

joelmukuthu commented 8 years ago

Not with the current structure I'm afraid. You'd have to use javascript to figure out how many elements will fit on the current width and to put the overflowing ones in new divs

joelmukuthu commented 8 years ago

In #25 I'm working on fixing this i.e. making snapscroll work with varying children heights. It's currently working with children whose height is smaller than the snapscroll element but not with children whose height is greater, I'll have to work on that next