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

Implement robust minimum pane size #119

Open
tim-blackbird opened this issue Oct 24, 2024 · 3 comments
Open

Implement robust minimum pane size #119

tim-blackbird opened this issue Oct 24, 2024 · 3 comments
Labels
A-Design User interface design and art A-Panes Related to editor panel based workflow

Comments

@tim-blackbird
Copy link
Contributor

We need a robust pane resizing implementation that prevents panes from being resized below a minimum size.

The minimum size along the height should be the height of the panel header.
I'm don't see an obvious choice for the minimum width. I'd pick the panel header height as minimum here as well for now.

Keep in mind that this also needs to prevent the panes going below the limit when the entire window is being resized.

@tim-blackbird tim-blackbird added A-Design User interface design and art A-Panes Related to editor panel based workflow labels Oct 24, 2024
@n1ght-hunter
Copy link
Contributor

shouldn't the minimum size be based on the content?

@tim-blackbird
Copy link
Contributor Author

Currently not planned, for the sake of flexibility and user-control of the layout.
I'd say the current trajectory for the prototype is somewhat like blender where toolbars and related menus are embedded within the pane rather than being separate like in Maya.

But of course my opinion isn't everything. Please do share your thoughts :)

@n1ght-hunter
Copy link
Contributor

n1ght-hunter commented Oct 25, 2024

oh maybe i misunderstood a little.
i think each pane should have a min size associated with it i.e.

struct SomePane {
    min_height: f32,
    min_width: f32,
   ... other things
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Design User interface design and art A-Panes Related to editor panel based workflow
Projects
None yet
Development

No branches or pull requests

2 participants