Skip to content

Conversation

@jimthedev
Copy link
Contributor

One more quick PR relating to #23. I just wanted to smooth out the width change transition a bit. With this new change the root level View doesn't actually resize even if you change the picker side. Instead, it only rotates (translates). It is always set to the largest side of the device. The buttons and the scroller slide left and right against the root View.

Why is this necessary? Well, this prevents a flash of partial width picker when you rotate from portrait to landscape lasting for one frame. It also makes sure that you don't have a few pixel padding on the right hand side.

@xwenliang
Copy link
Member

👍 Thanks for your PR!

xwenliang added a commit that referenced this pull request Feb 21, 2016
fix animation and small padding when in landscape
@xwenliang xwenliang merged commit b1c2728 into beefe:master Feb 21, 2016
rodolphefauquez pushed a commit to Clintal/react-native-picker that referenced this pull request Feb 16, 2018
modify consultation index screen

Approved-by: Takahiro Ohata <[email protected]>
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