Skip to content

Panes resized when added a new pane #131

@elC0mpa

Description

@elC0mpa

Hello, first of all I would like to thank you for this amazing Vue Component.
I am having a problem and I don´t know how to solve it.
The thing is that when I add a new pane to the component, the master pane (left pane) is resized and I would like to avoid this behavior.
Here I let you my code:

<splitpanes
        class="default-theme"
        @pane-remove="removed"
        @pane-add="added"
        @resized="resized"
      >
        <!-- Master -->
        <pane
          v-if="showMasterPanel"
          :min-size="masterPanelMinSize"
          :max-size="masterPanelMaxSize"
          :size="masterPanelSize"
          class="splitter-master-details__master"
        >
          <slot name="master-content"></slot>
        </pane>

        <!-- Detail -->
        <pane
          :min-size="detailsPanelMinSize"
          :max-size="detailsPanelMaxSize"
          :size="detailsPanelSize"
          class="splitter-master-details__detail"
        >
          <slot name="details-content"></slot>
        </pane>

        <!-- Extra -->
        <pane
          v-if="showExtraPanel"
          :min-size="extraPanelMinSize"
          :max-size="extraPanelMaxSize"
          class="splitter-master-details__extra"
        >
          <slot name="extra-content"></slot>
        </pane>
      </splitpanes>

In this code the variable showMasterPanel is always true but showExtraPanel is the one which changes its value and by changing this variable the events pane-add and pane-removed are fired.

I hope you could help me

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