Skip to content

[Splitview] api.setVisible causes the size of other split panels to change #1019

@atox996

Description

@atox996

I am encountering an issue with DockView in a horizontal three-panel layout. When I toggle the visibility of the left panel, the width of the right panel changes unexpectedly. I have set minimumSize and maximumSize for the left and right panels when they are created, and I expect the right panel to maintain its current width when the left panel becomes visible again.

Problem Details:


  • Layout: Horizontal three-panel layout (left, center, right).
  • I have set minimumSize and maximumSize for the left and right panels during their creation.
  • Behavior: When hiding the left panel, the center panel fills the remaining space, and the right panel takes up the maximumSize by default.
  • Issue: When showing the left panel again, the right panel's width resets to its minimumSize, causing the width to change.
  • Expected: I want the right panel to keep its current width and not reset to the minimumSize when the left panel becomes visible again.
    
    What should I do?
    Is there a way to prevent the right panel from resetting to its minimumSize and keep its current width when showing the left panel?

https://codesandbox.io/p/sandbox/ancient-bash-h2zntc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions