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

Proportional Panel Sizes #814

Open
brianblakely opened this issue Dec 30, 2024 · 0 comments
Open

Proportional Panel Sizes #814

brianblakely opened this issue Dec 30, 2024 · 0 comments

Comments

@brianblakely
Copy link

Is your feature request related to a problem? Please describe.
Sometimes I need to use the Dockview APIs to build out layouts with a specific proportionality, e.g. two vertical panels occupying 30% & 70% of their container. However, Dockview's size APIs only accept a raw pixel value, which isn't very responsive to numerous window and display sizes.

Describe the solution you'd like
Perhaps for all size-related APIs, entering a number 0-1 is interpreted as a proportional input.

Describe alternatives you've considered
I have been manually reading the container's pixel dimensions and basing child panel sizes on that. However, this is not very ergonomic.

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

No branches or pull requests

1 participant