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
Good catch. It looks like the text rendering in https://github.com/DioxusLabs/dioxus/blob/master/packages/tui/src/render.rs#L66 ignores the size of the layout right now. We have code that parses overflow for stretch2 in the attributes file, but stretch2 never uses it. We can add a field for it in the TuiNode for overflow and use it in the renderer.
Edit: stretch allows specifying a measure function we might be able to use for wrapping to allow the changes to effect the rest of the layout
Problem
Long text is not hidden or trimmed properly according to
overflow
attribute, which will cause out-of-boundry panic.Steps To Reproduce
Code:
Expected behavior
Text should be trimmed or wrapped when length is greater than container's width.
Screenshots
Environment:
0.2.3
]rustc 1.61.0-nightly (8d60bf427 2022-03-19)
]Linux
]Alacritty
]tui
]Questionnaire
The text was updated successfully, but these errors were encountered: