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
If you have a comment that is long, and you display it in readonly/non-editable mode, it is all rendered on one line and flows off the workspace bounds.
To Reproduce
Steps to reproduce the behavior:
Set the playground to readonly.
Load the following xml in the playground:
<xml xmlns="https://developers.google.com/blockly/xml">
<block type="controls_if" editable="false">
<comment pinned="true" h="32" w="1009.015625">This is a long comment of longness with lots and lots of text and leeettttteerrrrssss. And also some more text to help demonstrate non-editable comments.</comment>
</block>
</xml>
Observe how the comment is hard to read.
Expected behavior
The non-editable UI should try not to flow off the screen, ideally it would try to obey the height and width of the comment.
Describe the bug
If you have a comment that is long, and you display it in readonly/non-editable mode, it is all rendered on one line and flows off the workspace bounds.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The non-editable UI should try not to flow off the screen, ideally it would try to obey the height and width of the comment.
Screenshots
Editable:
Non-Editable:
This is not browser specific.
Additional context
The non-editable comment ui is using the warning UI.
Warnings already support linebreaks, so maybe that could be useful.
[EDIT: Related to #2943]
The text was updated successfully, but these errors were encountered: