Skip to content

4.15.0

Latest

Choose a tag to compare

@bvaughn bvaughn released this 24 Oct 21:31
· 1 commit to main since this release
  • Add useParentGroup, useParentPanel, and useParentGrid hooks. Components rendered within a Group, Panel, or Grid can use them to access the nearest one (including its imperative API) without passing refs down; they return null outside of a matching component. Within a Cell, useParentGroup returns the nearest Group outside of the Grid. - #775
  • Imperative Panel and GridTrack resize(), collapse(), and expand() calls (and double-clicking a separator to reset a panel's size) now take space from, or give it to, the nearest panels that can absorb it, on either side of the panel being resized. Previously only the panels on one side were used, starting with the adjacent panel, so these calls could silently do nothing (e.g. when the next panel was collapsed) or unexpectedly collapse or expand other panels. Changes that don't collapse or expand other panels are now preferred. - #774
  • expand() still restores a panel's most recent size, but if that would require collapsing another panel, it now expands to the largest size that fits instead (as long as that's at least its minSize). - #774
  • Fix releasing the pointer after dragging the boundary between panels that don't have a Separator "clicking" the element under the pointer (e.g. a button in a panel header). - #774