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

Paddings #77

Merged
merged 10 commits into from
Apr 4, 2016
Merged

Paddings #77

merged 10 commits into from
Apr 4, 2016

Conversation

dhilt
Copy link
Member

@dhilt dhilt commented Apr 1, 2016

During this refactoring a new approach of padding elements height calculation was developed.

Now the ui.scroll engine remembers the height of all items that were in DOM once. This allows to make a precise computation of scroll parameters. Yellow part of the diagram.

Also if the programmer sets dataset boundaries (via datasource.minIndex and datasource.maxIndex) then we have an additional calculation based on average item height. Cause these items are just potential and have never been in DOM. Green part of the diagram.

ui 1

It solves Average items height problem.

Also some new examples were added into the demo folder.

@dhilt dhilt merged commit a9cd4d8 into master Apr 4, 2016
@dhilt dhilt deleted the paddings branch April 18, 2016 15:10
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

Successfully merging this pull request may close these issues.

1 participant