diff --git a/src/ui/widget/table.rs b/src/ui/widget/table.rs index e50603b1..f68a078f 100644 --- a/src/ui/widget/table.rs +++ b/src/ui/widget/table.rs @@ -642,12 +642,11 @@ impl RenderTrait for Table<'_> { let highlight_style = self.render_highlight_style(); - let mut widget = TuiTable::new(self.items.to_rendered_rows()) + let mut widget = TuiTable::new(self.items.to_rendered_rows(), constraints) .block(block) .highlight_style(highlight_style) .highlight_symbol(HIGHLIGHT_SYMBOL) - .column_spacing(COLUMN_SPACING) - .widths(&constraints); + .column_spacing(COLUMN_SPACING); if !self.items.header().is_empty() { widget = widget.header(self.items.header().rendered());