docs: @SuppressWarnings("deprecation")
  	public float getScrollListWindowHeight(View view) {
  		final int[] xyParent = new int[2];
  		View parent = getScrollOrListParent(view);
  		final float windowHeight;
  
  		if(parent == null){
  			WindowManager windowManager = (WindowManager) 
  					instrumentation.getTargetContext().getSystemService(Context.WINDOW_SERVICE);
  
  			windowHeight = windowManager.getDefaultDisplay().getHeight();
  		}
  
  		else{
  			parent.getLocationOnScreen(xyParent);
  			windowHeight = xyParent[1] + parent.getHeight();
  		}
  		parent = null;
  		return windowHeight;
  	}