private void updateChildClippingAndBackground(StackScrollState.ViewState state,float realHeight,float clipHeight,float backgroundHeight){
  if (realHeight > clipHeight) {
    state.topOverLap=(int)Math.floor((realHeight - clipHeight) / state.scale);
  }
 else {
    state.topOverLap=0;
  }
  if (realHeight > backgroundHeight) {
    state.clipTopAmount=(int)Math.floor((realHeight - backgroundHeight) / state.scale);
  }
 else {
    state.clipTopAmount=0;
  }
}

private void updateChildClippingAndBackground ( StackScrollState . ViewState state , float realHeight , float clipHeight , float backgroundHeight ) { if ( realHeight > clipHeight ) { state . topOverLap = ( int ) Math . floor ( ( realHeight - clipHeight ) / state . scale ) ; } else { state . topOverLap = 0 ; } if ( realHeight > backgroundHeight ) { state . clipTopAmount = ( int ) Math . floor ( ( realHeight - backgroundHeight ) / state . scale ) ; } else { state . clipTopAmount = 0 ; } }
updates the shadow outline and the clipping for a view .
