private void clampPositionToBottomStackStart(StackScrollState.ViewState childViewState,int childHeight){
  childViewState.yTranslation=Math.min(childViewState.yTranslation,mInnerHeight - mBottomStackPeekSize - mCollapseSecondCardPadding- childHeight);
}

private void clampPositionToBottomStackStart ( StackScrollState . ViewState childViewState , int childHeight ) { childViewState . yTranslation = Math . min ( childViewState . yTranslation , mInnerHeight - mBottomStackPeekSize - mCollapseSecondCardPadding - childHeight ) ; }
clamp the ytranslation of the child down such that its end is at most on the beginning of the bottom stack .
