Skip to content

Commit

Permalink
Restore column width
Browse files Browse the repository at this point in the history
  • Loading branch information
nmeylan committed Jan 2, 2025
1 parent 1521020 commit 07cc03d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/array_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,12 +636,12 @@ impl<'array> ArrayTable<'array> {
table = table.column(Column::initial(40.0).clip(true).resizable(true));
continue;
}
table = table.column(Column::initial(10.0).clip(true).resizable(true));
// table = table.column(
// Column::initial((columns[i].name.len() + 3).max(10) as f32 * text_width)
// .clip(true)
// .resizable(true),
// );
// table = table.column(Column::initial(10.0).clip(true).resizable(true));
table = table.column(
Column::initial((columns[i].name.len() + 3).max(10) as f32 * text_width)
.clip(true)
.resizable(true),
);
}
}

Expand Down

0 comments on commit 07cc03d

Please sign in to comment.