Commit graph

13 commits

Author SHA1 Message Date
007493f136 Derive more traits for widgets 2023-04-08 15:40:14 +02:00
542ea7bc66 Simplify Join* implementation 2023-02-26 14:57:34 +01:00
0573fcec77 Only provide WidthDb in [Async]Widget::size 2023-02-26 14:42:48 +01:00
417f33cc24 Differentiate between growing and shrinking segments
Also uses the new with_* naming scheme for segments
2023-02-20 16:57:35 +01:00
783e57a9ab Allow join segments to be fixed
I'm not sure if this is a good abstraction, or if I should instead
re-think the algorithm.
2023-02-19 02:31:58 +01:00
8f155dc6a2 Fix join widgets not handling large sizes 2023-02-19 02:09:41 +01:00
b1c276ec38 Fix panic with zero-weighted segments 2023-02-19 02:02:27 +01:00
bdc1549268 Create Join[HV]{2,7} via macros 2023-02-18 20:56:36 +01:00
204540f375 Create Either{2,7} via macros 2023-02-18 20:56:10 +01:00
3fb3a7b92b Fix sizing bug
The available space was updated while removing elements, but the check
for the next element expected the old value.
2023-02-18 19:40:33 +01:00
d449c61f27 Add JoinH2, JoinH3, JoinV2, JoinV3 2023-02-18 19:06:22 +01:00
f581fa6c47 Add JoinH and JoinV 2023-02-18 19:06:18 +01:00
15e30dfdb2 Implement join widget spacing algorithm 2023-02-18 18:20:55 +01:00