add a border width

pull/99/head
Takayuki Maeda 3 years ago
parent 3b7f837724
commit 6f13a35ebe

@ -314,7 +314,7 @@ impl TableComponent {
)
.clamp(&3, &20)
});
if widths.iter().map(|(_, width)| width).sum::<usize>() + length + widths.len()
if widths.iter().map(|(_, width)| width).sum::<usize>() + length + widths.len() + 1
>= area_width.saturating_sub(number_column_width) as usize
{
column_index += 1;
@ -332,7 +332,7 @@ impl TableComponent {
let selected_column_index = widths.len().saturating_sub(1);
let mut column_index = far_right_column_index + 1;
while widths.iter().map(|(_, width)| width).sum::<usize>() + widths.len()
<= area_width.saturating_sub(number_column_width) as usize
< area_width.saturating_sub(number_column_width) as usize
{
let length = self
.rows

Loading…
Cancel
Save