enso/app/gui/view/examples
Stijn ("stain") Seghers 7f9ed71ad9
Fix cut-off in text visualisations (#6421)
Closes #6196.

Three things were going wrong:
- Not directly contributing, but adding confusion was the fact that padding of 5px was added in two different places. Since the 10px we've had up until now looked better, especially given the size of the rounded corners, I've kept it at 10px, but only applied in one place.
- The main issue was that the length the scrollbars scroll over didn't take padding into account. At the same time, I changed the `max` and `thumb_size` variables to the coordinate system of the content. This is also how they're being used in `ScrollArea`, which is the only other place where `Scrollbar`s are being used.
- The line height of text grid entries was set to the default of 1.2. That's the default line height in browsers, which is great for multi-line text and elements whose height is greater than the line height. In this case, however, where the height and the font size are set to the same value, the default setting of 1.2 pushes the text below the allotted space.

https://user-images.githubusercontent.com/607786/234297411-8c0b3851-5977-4ca5-b3b4-5b0782510e14.mp4
2023-05-04 08:11:18 +00:00
..
component-list-panel-view Better sorting after filtering items in the Component Browser (#4115) 2023-03-16 11:23:40 +00:00
documentation remove content_origin property from layout (#6155) 2023-04-01 11:48:01 +00:00
execution-environment-dropdown Ability to change the execution environment between design and live. (#6341) 2023-04-25 20:28:15 +00:00
icons Add node button to enable/disable output context (#6205) 2023-04-11 17:05:37 +00:00
interface Widgets integrated with graph nodes (#6347) 2023-04-26 19:37:54 +00:00
src Ability to change the execution environment between design and live. (#6341) 2023-04-25 20:28:15 +00:00
text-grid-visualization Fix cut-off in text visualisations (#6421) 2023-05-04 08:11:18 +00:00
visualization Eager shader compilation (#5606) 2023-02-22 00:29:48 +01:00
Cargo.toml Ability to change the execution environment between design and live. (#6341) 2023-04-25 20:28:15 +00:00