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

Remember the scroll position doesn't always work. #140

Open
pieter-v opened this issue Feb 13, 2017 · 0 comments
Open

Remember the scroll position doesn't always work. #140

pieter-v opened this issue Feb 13, 2017 · 0 comments

Comments

@pieter-v
Copy link
Contributor

If the width/height is not known in advance (e.g.: width is 80% of the parent element) and if the layout needs to know these values to determine the sizes of the items (e.g: a layout where each item is a square and has ’n’ columns), then specifying a scroll position doesn't work.
This is due to the fact that ember-native-scrollable is inserted into the dom before its parent ember-collection. So, the first time when the layout.contentSize is called, the clientWidth and clientHeight is not known. Therefor applying the saved scroll position has no effect

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

1 participant