Skip to content

v5.1.0

Choose a tag to compare

@TrevorBurnham TrevorBurnham released this 06 Dec 16:29
· 2 commits to main since this release
303b9a3

Features

  • The height prop now accepts a CSS value or "auto" as well as pixels. A CSS
    value ("100%", "50vh", "calc(100% - 2rem)") is applied to the tree element
    and measured, so a tree can fill its parent without a resize observer of your
    own. "auto" grows the tree to fit its rows. A new maxHeight prop caps that
    growth and keeps the list virtualized: height="auto" maxHeight="100%" is as
    tall as the rows or the parent, whichever is shorter. Trees with a numeric
    height measure nothing and behave as before (issue #86). (#386)