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 vertical alignment for MultiProgress #295

Merged
merged 2 commits into from Jun 21, 2021
Merged

Conversation

nlinker
Copy link
Contributor

@nlinker nlinker commented Jun 17, 2021

Add an attribute to MultiProgress that allows us to make top (default) and bottom alignment, shown on the video:

Screen.Recording.2021-06-17.at.20.08.33.mov

Signed-off-by: Nick Linker <nlinker@gmail.com>
Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I can see how this might be useful!

src/progress_bar.rs Outdated Show resolved Hide resolved
src/progress_bar.rs Outdated Show resolved Hide resolved
src/progress_bar.rs Show resolved Hide resolved
src/progress_bar.rs Outdated Show resolved Hide resolved
src/draw_target.rs Outdated Show resolved Hide resolved
examples/multi-alignment.rs Outdated Show resolved Hide resolved
Signed-off-by: Nick Linker <nlinker@gmail.com>
@djc djc merged commit 0eb568a into console-rs:main Jun 21, 2021
@djc
Copy link
Collaborator

djc commented Jun 21, 2021

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants