-
Notifications
You must be signed in to change notification settings - Fork 689
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
Fixes #2002. Added feature to fill the remaining width with spaces. #2003
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why this feature is needed.
The issue (#2002) does not describe the circumstances where the issue exists.
Can you please elaborate?
In the unit test already explain why this change is needed. If the view width is bigger than the text length and we needed to fill the remaining with spaces. This allows any view to leverage all the text alignment feature. |
Fixes #2002 - By default the
TextFormatter.Draw
method should fill the remaining view width spaces. This way any view can fill all the view width. If it's false only the text width will be draw.Pull Request checklist:
CTRL-K-D
to automatically reformat your files before committing.dotnet test
before commit///
style comments)