ratatui/tests
Josh McKinney 56455e0fee
fix(layout): don't leave gaps between chunks (#408)
Previously the layout used the floor of the calculated start and width
as the value to use for the split Rects. This resulted in gaps between
the split rects.

This change modifies the layout to round to the nearest column instead
of taking the floor of the start and width. This results in the start
and end of each rect being rounded the same way and being strictly
adjacent without gaps.

Because there is a required constraint that ensures that the last end is
equal to the area end, there is no longer the need to fixup the last
item width when the fill (as e.g. width = x.99 now rounds to x+1 not x).

The colors example has been updated to use Ratio(1, 8) instead of
Percentage(13), as this now renders without gaps for all possible sizes,
whereas previously it would have left odd gaps between columns.
2023-08-18 10:23:13 +00:00
..
backend_termion.rs feat(terminal)!: add inline viewport (#114) 2023-04-17 14:23:50 +02:00
border_macro.rs feat(border): add border! macro for easy bitflag manipulation (#11) 2023-05-21 15:26:39 -07:00
stylize.rs feat(stylize): allow all widgets to be styled (#289) 2023-07-14 08:37:30 +00:00
terminal.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_barchart.rs feat(barchart): set custom text value in the bar (#309) 2023-07-14 04:38:54 +00:00
widgets_block.rs fix(title): remove default alignment and position (#323) 2023-07-17 10:27:58 +00:00
widgets_calendar.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_canvas.rs chore: Minor lints, making Clippy happier (#189) 2023-05-21 20:45:37 -07:00
widgets_chart.rs style: reformat imports (#219) 2023-06-12 05:07:15 +00:00
widgets_gauge.rs chore(demo): update demo gif with a fixed unicode gauge (#227) 2023-06-11 16:23:23 +02:00
widgets_list.rs feat(list): add option to always allocate the "selection" column width (#394) 2023-08-13 08:24:51 +00:00
widgets_paragraph.rs style(comments): set comment length to wrap at 100 chars (#218) 2023-06-04 12:34:05 +02:00
widgets_table.rs fix(layout): don't leave gaps between chunks (#408) 2023-08-18 10:23:13 +00:00
widgets_tabs.rs refactor(text): replace Spans with Line (#178) 2023-05-18 20:21:43 +02:00