Skip to content

Calculate the offset in the initial state instead of onLayout.#541

Merged
arribbar merged 1 commit into
leecade:masterfrom
kjkta:master
Sep 6, 2017
Merged

Calculate the offset in the initial state instead of onLayout.#541
arribbar merged 1 commit into
leecade:masterfrom
kjkta:master

Conversation

@kjkta

@kjkta kjkta commented Aug 27, 2017

Copy link
Copy Markdown
Contributor

Enables the inital index to be rendered first, avoiding a render of uncalculated offset.

Is it a bugfix ?

Is it a new feature ?

  • No

Describe what you've done:

Calculate the offset of the index prop in the initial state.
Enables the initial index to be rendered first, avoiding a render of uncalculated offset.

How to test it ?

Provide index prop >0.

Enables the inital index to be rendered first, avoiding a render of uncalculated offset.
@arribbar

arribbar commented Sep 6, 2017

Copy link
Copy Markdown
Collaborator

Thanks @kjkta

@arribbar arribbar merged commit a8e052c into leecade:master Sep 6, 2017
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.

2 participants