height

The actual height of this node, in LogicalPixels.

The position and size of Nodes are assigned by their parent in layout, using setChildBounds. The parent node uses any of : evalMinHeight, evalPrefHeight and evalMaxHeight and its own logic to determine the actual width of this Node.

To specify a fixed width for this node, you may set overridePrefHeight. evalPrefHeight will ignore nodePrefWidth and return overridePrefHeight instead.

However, this still does not guarantee the node will be the size requested (e.g. if the parent node isn't big enough to accommodate its children's preferred sizes).