Skip to content

Fix wrong calculation of width and height after device rotation#581

Merged
arribbar merged 1 commit intoleecade:masterfrom
kostyaVyrodov:master
Sep 28, 2017
Merged

Fix wrong calculation of width and height after device rotation#581
arribbar merged 1 commit intoleecade:masterfrom
kostyaVyrodov:master

Conversation

@kostyaVyrodov
Copy link
Copy Markdown

@kostyaVyrodov kostyaVyrodov commented Sep 21, 2017

Is it a bugfix?

Describe what you've done:

  • I moved code that gets width and height to the initState() function

Steps to reproduce the issue (iOS):

Precondition:
<Swiper index={this.state.selectedPageIndex} onIndexChanged={(index) => this.setState({ selectedPageIndex: index })}> <SomeView/> </Swiper>

  • Add function to handle onIndexChanged
  • Pass updatedIndex

Steps:

  • Rotate device
  • Swipe

@arribbar
Copy link
Copy Markdown
Collaborator

Thanks @kostyaVyrodov

@arribbar arribbar merged commit 0dbe73b into leecade:master Sep 28, 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.

Landscape mode

2 participants