Skip to content

Allow resizing areas from code, without unmounting. #57

@joe-oli

Description

@joe-oli

FEATURE REQUEST:
Currently panel areas (what you call layout-pane) cannot be resized using code, one must actually drag the separators on the UI.

For example, I expected forcing a re-render for the component to re-adjust initial size.

<SplitterLayout vertical percentage={true} secondaryInitialSize={this.state.bottomPanelSizePct} secondaryMinSize={8} primaryMinSize={4} >
	<div className="editor">
		Top Panel
	</div>
	<div className="editor">
		Bottom Panel
	</div>
</SplitterLayout>

It appears one must actually unmount the component, then mount it again, with a new secondaryInitialSize, for the size re-adjustment to be possible from code.

It should be possible to just re-render the component, and change the sizes without Unmounting?

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