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

iron-list when parent has flex-direction: column-reverse #470

Open
iSuslov opened this issue Jul 18, 2017 · 1 comment
Open

iron-list when parent has flex-direction: column-reverse #470

iSuslov opened this issue Jul 18, 2017 · 1 comment

Comments

@iSuslov
Copy link

iSuslov commented Jul 18, 2017

Let me know if you don't understand the issue, but briefly speaking it just does not work when parent has flex-direction: column-reverse. I'm developing chat and want scrolling region to stick to the bottom.
Documentation does not say anything about not supporting column-reverse.

        <iron-scroll-threshold class="fit column-reverse" id="threshold">
            <iron-list items="[[messages]]">
                <template>
                    <div>{{item.msg}}</div>
                </template>
            </iron-list>
        </iron-scroll-threshold>

This does not work when messages are dynamically added after first render. Size of iron-list becomes > 10000px and there are big vertical gaps between elements.

@keanulee
Copy link
Contributor

We haven't looked into/supported the reverse scrolling use case, but generally you wouldn't need to have iron-scroll-threshold around iron-list (since iron-list already handles scroll events).

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