height property - CssRect class - dart:html library (original) (raw)
num getheight
override
The height of this rectangle.
This is equivalent to the height function in jQuery and the calculatedheight CSS value, converted to a dimensionless num in pixels. UnlikeElement.getBoundingClientRect, height will return the same numerical height if the element is hidden or not.
Implementation
num get height;setheight (dynamic newHeight)
Set the height to newHeight.
newHeight can be either a num representing the height in pixels or aDimension object. Values of newHeight that are less than zero are converted to effectively setting the height to 0. This is equivalent to theheight 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.");
}