You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a ScrollTextBlock and I am writing a string to it once per second. It works great until the _text_lines length is equal or greater than the viewport rows of the textblock. If the string has a single newline at the end of it then the string gets written to _text_lines but it does not properly get rendered in the text block. Once I send another string, the previous string then shows up in the text box.
However if I send strings with double newlines there is no issue. This is shown in the screenshots
Note: I attempted to call _draw() on the ScrollTextBlock but this does not resolve the issue.
thanks. appreciate your time
To Reproduce
Steps to reproduce the behavior:
Create a ScrollTextBlock
Create a loop and write() to it every second with a string that has newline at the end
Once your text gets to a row length >= to the viewport y dimension you will see that the strings are being rendered in this strange manner.
Expected behavior
Each string/line that is written to be rendered correctly without having to do double newlines as a workaround.
Screenshots
Single newline (Viewport has 13 rows in this case):
The textbox does not render the text of the last string, however you can go left and right on the line to the length of the string that should be displayed. It is supposed to display "Closing Serial"
Double newline (Viewport has 13 rows in this case):
The textbox renders the strings just fine.
**Environment
OS: [e.g. Ubuntu 20.04]
Terminal: gnome-terminal
Version: [ex. v1.0.4]
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a ScrollTextBlock and I am writing a string to it once per second. It works great until the
_text_lines
length is equal or greater than the viewport rows of the textblock. If the string has a single newline at the end of it then the string gets written to_text_lines
but it does not properly get rendered in the text block. Once I send another string, the previous string then shows up in the text box.However if I send strings with double newlines there is no issue. This is shown in the screenshots
Note: I attempted to call
_draw()
on the ScrollTextBlock but this does not resolve the issue.thanks. appreciate your time
To Reproduce
Steps to reproduce the behavior:
write()
to it every second with a string that has newline at the endExpected behavior
Each string/line that is written to be rendered correctly without having to do double newlines as a workaround.
Screenshots
Single newline (Viewport has 13 rows in this case):
The textbox does not render the text of the last string, however you can go left and right on the line to the length of the string that should be displayed. It is supposed to display
"Closing Serial"
Double newline (Viewport has 13 rows in this case):
The textbox renders the strings just fine.
**Environment
The text was updated successfully, but these errors were encountered: