Releases: bvaughn/react-resizable-panels
Releases · bvaughn/react-resizable-panels
4.5.2
4.5.1
4.5.0
- 616: Replace
SeparatorandPaneledge hit-area padding with a minimum size threshold based on Apple's user interface guidelines. Separators that are large enough will no longer be padded; separators that are too small (or panels without separators) will more or less function like before. This should not have much of a user-facing impact other than an increase in the click target area. (Previously I was not padding enough, as per Apple's guidelines.) - 615, 620: Double-clicking on a
Separatorresets its associatedPanelto its default-size (see video below); double-click will have no impact on panels without default sizes - 622: Bugfix: Panels within vertical groups are now properly sized in Safari
- 618: Bugfix: Don't override
adoptedStyleSheets
Demo of double-clicking on a separator:
dbl-click.mov
4.4.2
4.4.1
4.4.0
- 599: Add new
onLayoutChangedprop toGroup.
For layout changes caused by pointer events, this method is not called until the pointer has been released. This callback should be used if you're doing something like saving a layout as it is called less frequently than the previous approach.
The useDefaultLayout hook has also been updated to use this callback (though it will continue to support the old callback as well, with a @deprecation tag).
4.3.3
4.3.2
4.3.1
- 588: Replace
"unset"styles with safer override values - 589: Use capture phase for
"pointerdown"and"pointerup"events; this is necessary for compatibility with certain UI libraries like Blueprint JS - 590: Read
Panelpixel size usingoffsetWidth/offsetHeightrather thaninlineSizeto avoid an edgecase bug withResizeObserver
4.3.0
- 583:
Groupcomponent now sets defaultwidth,height, andoverflowstyles; (both can be overridden using thestyleproperty) - 582: Drag interactions only call
event.preventDefaultfor the primary button - Refine TS types for
useGroupRefandusePanelRefto include| nullto increase compatibility with older React versions - Update TSDoc comments for
PanelandSeparatorcomponents