mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not open panels when collapsed and window resize
This commit is contained in:
parent
e6c57edf87
commit
c195094e91
@ -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.
|
||||
*/
|
||||
panelHandleRef.current.resize(minSizePct);
|
||||
if (!panelHandleRef.current.isCollapsed()) {
|
||||
panelHandleRef.current.resize(minSizePct);
|
||||
}
|
||||
});
|
||||
|
||||
resizeObserver.observe(panelGroupElement);
|
||||
|
Loading…
Reference in New Issue
Block a user