toss/src
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
..
widgets Apply Resize's max size to available size too 2023-04-17 16:48:13 +02:00
buffer.rs Derive more traits for widgets 2023-04-08 15:40:14 +02:00
coords.rs Improve coords documentation 2023-02-17 15:04:56 +01:00
frame.rs Export all types at top level 2023-02-16 09:37:31 +01:00
lib.rs Add own Style type 2023-02-16 21:11:51 +01:00
style.rs Switch usages of ContentStyle to Style 2023-02-16 21:24:52 +01:00
styled.rs Switch usages of ContentStyle to Style 2023-02-16 21:24:52 +01:00
terminal.rs Fix typo 2023-02-18 19:06:22 +01:00
widget.rs Add Boxed and BoxedAsync widgets 2023-04-08 16:00:04 +02:00
widgets.rs Add Boxed and BoxedAsync widgets 2023-04-08 16:00:04 +02:00
widthdb.rs Improve WidthDb documentation 2023-02-17 13:35:28 +01:00
wrap.rs Export all types at top level 2023-02-16 09:37:31 +01:00