-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Visual content blocks that should be full size receive a scroll bar and clip text #273
Comments
The bounds of these elements seems to be slightly smaller when deployed to HTML, which makes it tricky to assess what minimum size they should be when creating them. It could be to do with RichTextLabel heights being unreliable. I'm sure I've seen some issues relating to that. |
Those are Another issue is that those don't correctly adjust to the font size changes, which can also produce scrollbars. There seems to be at least one issue with |
Yeah the wrapping is the biggest difficulty with increasing the font size. I think we'd need some API to get the content's height, taking wrapping into account. The way we scale them now is simply increasing the UILesson's column width and I think TextEdit nodes' height proportionally to the font. But that's not always enough. |
Ah yes my mistake. That'll teach me to reply after just waking up. |
For now we'll have to manually increase the code examples' minimum height. We don't have a way to calculate how tall the example should be. So when you see this issue in a specific lesson, please let us know. I fixed it for lesson 13 |
Describe the bug
Visual content blocks containing code receive a scroll bar and clips either top or bottom text (depending on scroll).
This scroll contains one extra empty line at the bottom (does not have any line number indicating it is an empty line).
To Reproduce
Expected behavior
Either:
Screenshots
Lesson 13 Comparisons with scroll bar at top. Clips lightly at the bottom line.
Lesson 13 Comparisons with scroll bar at bottom. Clips an entire line from the top.
Lesson 6 at the top with scroll bar at top. Clips nothing.
Lesson 6 at the top with scroll bar at bottom. Clips the first line and has an unnaturally large gap at the bottom.
Information about your device (please complete the following information):
Additional context
Also mildly annoying when scrolling through due to them both catching the input, but also not stopping the main scroll bar when using the scroll wheel on them.
The text was updated successfully, but these errors were encountered: