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
Vertical Collection when collection starts off screen #151
Vertical Collection when collection starts off screen #151
Conversation
@kylemellander are u actively using this in a large app? If so talk to @runspired - i know he's busy with a lot of things, maybe u can maintain/help this one for a bit if you understand and use it. (just a friendly thought - runspired has awesome work all over github, more than he can maintain for sure) |
I'm hacking this into our app with an initializer currently. It would be awesome to get this fixed. |
@runspired can you merge this please? I just debugged this in my app and wanted to send a pull request only to find out there is already one. If you want to know what's going on: this |
@ssendev actually, could you check if this is fixed by the new version of |
Unfortunately it dosn't work. I removed <style>
vertical-collection {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
my-component {
width: 24rem;
height: 31rem;
margin: 1rem
}
</style>
{{#vertical-collection
content=items
defaultHeight='32.875rem'
containerSelector='.mdl-layout'
invisibleBuffer=0
visibleBuffer=1.5
as |item| }}
{{component myComponent item=item}}
{{/vertical-collection}} with {{#vertical-collection
items
minHeight='32.875rem'
containerSelector='.mdl-layout'
as |item| }} which resulted in Removing flex changes the error to Not using the |
@ssendev thanks! I'm going to copy your response to an issue there to track it for 1.0. We should be bumping smoke-and-mirrors to use vertical-collection here in the next day or so :) |
@ssendev we've added a test for this in |
Closes #150
This simply creates a floor for the index of the lastVisible Component Index which was causing errors when the vertical collection originates off the screen.