dockview icon indicating copy to clipboard operation
dockview copied to clipboard

setConstraints no longer works

Open borglin opened this issue 1 year ago • 0 comments

Describe the bug Using setConstraints no longer has any effect. I can still resize a group how I want. The sandbox included in the docs shows this behaviour. If I fork the sandbox and use version 1.16.0 the constraints are working.

https://dockview.dev/docs/core/groups/constraints

To Reproduce Using the sandbox from the docs, https://codesandbox.io/p/sandbox/github/mathuo/dockview/tree/gh-pages/templates/dockview/constraints/react

Steps to reproduce the behavior:

  1. Click set on any panel
  2. Resize to more than the maxWidth
  3. The constraints display is not shown in the panel

Using the same sandbox but with v1.16.0 https://codesandbox.io/p/sandbox/flamboyant-moon-vzxntg it works

Expected behavior When I use setConstraints the constraints are set and they prevent the resizing beyond the min/max size

borglin avatar Sep 19 '24 11:09 borglin