height property

num height

The height of this display object with the applied transformation.

Setting the height may change the scaleX, scaleY, skewX and skewY properties, depending on the previously applied transformation.


num get height => boundsTransformed.height;
void height=(num value)


set height(num value) {
  var bounds = this.bounds;
  var matrix = transformationMatrix;
  var boundsTransformed = matrix.transformRectangle(bounds, bounds);
  var scale = value / boundsTransformed.height;
  var mb = scale.isFinite ? matrix.b * scale : 0.0;
  var md = scale.isFinite ? matrix.d * scale : 1.0;
  _reverseMatrix(matrix.a, mb, matrix.c, md);