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 a bug in CardStackLayoutManager_updateProportion make NullPoint… #194

Merged
merged 2 commits into from
Feb 22, 2019
Merged

fixed a bug in CardStackLayoutManager_updateProportion make NullPoint… #194

merged 2 commits into from
Feb 22, 2019

Conversation

katsuya-yamada-eureka
Copy link
Contributor

fixed a bug #180

@@ -183,8 +183,10 @@ public CardStackListener getCardStackListener() {
void updateProportion(float x, float y) {
if (getTopPosition() < getItemCount()) {
View view = findViewByPosition(getTopPosition());
float half = getHeight() / 2.0f;
state.proportion = -(y - half - view.getTop()) / half;
if(view != null) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@katsuya-yamada-eureka Can you format your code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuyakaido oh..sorry. please check it out again ;)

@yuyakaido yuyakaido merged commit ec8049b into yuyakaido:master Feb 22, 2019
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