Skip to content

Commit

Permalink
Update Init Properties
Browse files Browse the repository at this point in the history
To Fix #9 make starting position dependent instead of fixed gravity
  • Loading branch information
davcpas1234 committed Jan 11, 2016
1 parent d8e92c8 commit 27c1f16
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public boolean onDependentViewChanged(CoordinatorLayout parent, CircleImageView

private void shouldInitProperties(CircleImageView child, View dependency) {
if (mStartYPosition == 0)
mStartYPosition = (int) (child.getY() + (child.getHeight() / 2));
mStartYPosition = (int) (dependency.getY());

if (mFinalYPosition == 0)
mFinalYPosition = (dependency.getHeight() /2);
Expand Down Expand Up @@ -109,4 +109,4 @@ public int getStatusBarHeight() {
}
return result;
}
}
}

0 comments on commit 27c1f16

Please sign in to comment.