Rust terminal drawing library
Find a file
Joscha 57788a9dd9 Apply Resize's max size to available size too
I'm not sure if the input max size and the output max size should be
separate, and I'm not sure whether the min size should also have an
effect on the input. For now, this works well enough, but I may need to
adjust it in the future as I stumble across new edge cases.

This change was made because I was using Resize as a way to set the size
of widgets containing text that were rendered inside Predraw widgets.
After this change, setting a max_width but no max_height has the desired
effect of making the inner widgets perform word wrapping. The resulting
Predrawn is then as high as it needs to be to contain the wrapped text.
2023-04-17 16:48:13 +02:00
.vscode Add vscode settings 2023-02-16 09:37:59 +01:00
examples Use new with_* naming scheme 2023-02-20 15:53:49 +01:00
src Apply Resize's max size to available size too 2023-04-17 16:48:13 +02:00
.gitignore Create project 2022-05-21 00:15:53 +02:00
Cargo.toml Add Widget and AsyncWidget traits 2023-02-16 09:37:59 +01:00