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

core: allow to set a direction for a horizontal/vertical split #30

Open
aruhier opened this issue Jun 22, 2021 · 0 comments
Open

core: allow to set a direction for a horizontal/vertical split #30

aruhier opened this issue Jun 22, 2021 · 0 comments

Comments

@aruhier
Copy link
Contributor

aruhier commented Jun 22, 2021

Currently, a ViewNode can take a prefered_split_type which changes the behavior of the split when upgraded into a SplitNode (horizontal, vertical, tabbed, etc.).

However it should be possible to indicate a direction for horizontal and vertical splits: left/right or top/bottom of the node.

Idea of implementation

A new field in the ViewNode indicating if the next node is to be added before or after the current node in the children list could solve this issue. Before/After for a horizontal split would mean top/down, and left/right for a horizontal split.

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