dockview icon indicating copy to clipboard operation
dockview copied to clipboard

How to set minimum and maximum panel sizes in DockView?

Open gkhnoztrk opened this issue 1 year ago • 1 comments

Hi,

I'm currently working on a project using the DockView library, and I'm trying to implement size constraints for my panels. Specifically, I want to set minimum and maximum sizes for each panel to ensure they don't become too small or too large when users resize them.

I've looked through the documentation but couldn't find a clear way to achieve this. Is there a built-in method or property in DockView to set minimum and maximum sizes for panels?

My use case requires that panels:

  • Don't shrink below a certain width and height
  • Don't expand beyond a certain width and height

Could you please provide guidance on the proper way to set these size constraints for panels in DockView? If this feature isn't currently available, are there any workarounds or plans to implement it in the future?

Thank you for your time and assistance.

gkhnoztrk avatar Jul 09 '24 01:07 gkhnoztrk

Tracking in https://github.com/mathuo/dockview/issues/640

mathuo avatar Jul 11 '24 20:07 mathuo

Released in 1.17.1

See http://localhost:3000/docs/core/panels/add#minimum-and-maximum

See https://github.com/mathuo/dockview/issues/708 for continued work on group size preservation

mathuo avatar Sep 05 '24 18:09 mathuo