Skip to content

Dockview never auto-resizes to smaller height in flex layout #492

@artaommahe

Description

@artaommahe

Describe the bug

Dockview has an auto-resize feature, but it doesn't work if the new height should be smaller than the previous one inside flex layout.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://stackblitz.com/edit/dockview-resize-issue?file=src%2FApp.tsx
  2. Make the window's height smaller
  3. See vertical scrollbar, div.dv-dockview height remains the same

Expected behavior

.dv-dockview should change its size to the smaller one

Screenshots

-

Desktop (please complete the following information):

  • Browser: Chrome
  • Version: Version 121.0.6167.139 (Official Build) (arm64)

Additional context

(btw docs for the auto-resizing feature are missed. There is this statement in the docs Read about auto-resizing before using, but nothing about auto-resizing anywhere)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions