fix(ui): do not open panels when collapsed and window resize

This commit is contained in:
psychedelicious 2024-04-19 13:37:37 +10:00 committed by Kent Keirsey
parent e6c57edf87
commit c195094e91

View File

@ -124,7 +124,9 @@ export const usePanel = (arg: UsePanelOptions): UsePanelReturn => {
*
* For now, we'll just resize the panel to the min size every time the panel group is resized.
*/
if (!panelHandleRef.current.isCollapsed()) {
panelHandleRef.current.resize(minSizePct);
}
});
resizeObserver.observe(panelGroupElement);