Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility for static elements #40

Open
GideonKoenig opened this issue Aug 16, 2024 · 1 comment
Open

Add possibility for static elements #40

GideonKoenig opened this issue Aug 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@GideonKoenig
Copy link

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

Currently, when you add elements within a PaneGroup that are not Pane components, the handle drifts while resizing.

Example:

<Resizable.PaneGroup>
    <div> Element of a fixed size </div> 
    <Resizable.Pane />
    <Resizable.Handle />
    <Resizable.Pane />
</Resizable.PaneGroup>

Attempted Workaround:
I tried adding a "collapsed" element with a dummy handle as a workaround, but as you can only define the size of Panes as a percentage of the total available space, resizing the PaneGroup itself lead to unwanted resizing of the "static" element.

Desired Solution:
Having either another component, or a prop to define a static Pane or a way of defining the size of a collapsed Pane in px or rem would solve this.

What type of pull request would this be?

None

Provide relevant links or additional information.

No response

@GideonKoenig GideonKoenig added the enhancement New feature or request label Aug 16, 2024
@huntabyte
Copy link
Member

I'm not sure this would make sense/be possible. We can't know how much space that random div is taking up in order to compute the remaining amounts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants