gyscos / gyscos/cursive

Center contents of a view

Open
#369 4 comments 2 reactions 0 assignees View on GitHub
enhancement views
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

I have looked for this in the issues, but I can't seem to find what I want.

I have 2 SelectViews side by side, both have a fixed width and are separated by a DummyView with also a fixed width. The total width of all this together is not so much.

Is there currently a way to horizontally center this in a view, no matter what size the terminal is?

I tried setting squishable to true to 2 DummyViews on each side, but that results in the SelectViews to be aligned left once I resize the terminal window.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.