getHeightRatio method

double getHeightRatio(
  1. double val
)

Implementation

double getHeightRatio(double val) {
  var res = (val / refHeight!) * 100;
  var temp = res * blockSizeVertical!;
  var widthTemp = getWidthRatio(val);
  return widthTemp > temp ? widthTemp : temp;
}