Skip to content

Add "resize avoidant" mode to Pane #91

Description

@jpenilla

Describe the feature in detail (code, mocks, or screenshots encouraged)

When a PaneGroup's container (i.e. the browser window) is resized, panes maintain their proportions. This is the current and intended behavior.

When using paneforge to implement a resizable sidebar, this behavior may not be desired. For example, if I set my sidebar to be 300px, and then increase the width of my browser window, I want the sidebar Pane to stay 300px, and the extra space to be allocated to other Panes. Or, if I shrink the browser window, the sidebar Pane should not shrink until it's forced to by the container becoming smaller than it's current size. This could be implemented as a "resize avoidant" mode on Panes.

This behavior is typical of IDEs and apps like Discord.

What type of pull request would this be?

New Feature

Provide relevant links or additional information.

PaperMC/diff-viewer#45

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions