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

Fixed layout when screen orientation changed to support horizon orientation. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xuqingkuang
Copy link

@xuqingkuang xuqingkuang commented Mar 8, 2018

Hi, I have fixed the layout issue when screen orientation changed, now horizon orientation is supported.

The most important code is the parent component will change rowWidth when orientation changed, so componentWillReceiveProps will handle it.

BTW: state.sortable can be replace with props.sortable so that the sortable control will belong to parent component totally.

The patch is just a part of my code, because I have no the example app, please have a test.

@xuqingkuang xuqingkuang changed the title Fixed layout when screen orientation changed Fixed layout when screen orientation changed to support horizon orientation. Mar 8, 2018
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