description

# height property

num get height
override

The height of this rectangle.

This is equivalent to the `height` function in jQuery and the calculated `height` CSS value, converted to a dimensionless num in pixels. Unlike Element.getBoundingClientRect, `height` will return the same numerical height if the element is hidden or not.

## Implementation

    num get height;

set height (dynamic newHeight)

Set the height to `newHeight`.

newHeight can be either a num representing the height in pixels or a Dimension object. Values of newHeight that are less than zero are converted to effectively setting the height to 0. This is equivalent to the `height` function in jQuery and the calculated `height` CSS value, converted to a num in pixels.

Note that only the content height can actually be set via this method.

## Implementation

    set height(dynamic newHeight) {
      throw new UnsupportedError("Can only set height for content rect.");
    }