- Add
useParentGroup,useParentPanel, anduseParentGridhooks. Components rendered within aGroup,Panel, orGridcan use them to access the nearest one (including its imperative API) without passing refs down; they returnnulloutside of a matching component. Within aCell,useParentGroupreturns the nearestGroupoutside of theGrid. - #775 - Imperative
PanelandGridTrackresize(),collapse(), andexpand()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 itsminSize). - #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