From ff8131ae59e78d5564d674109217caa5afa9f7d6 Mon Sep 17 00:00:00 2001 From: kohashimoto Date: Sat, 30 Dec 2023 01:41:24 +0900 Subject: [PATCH] fix(ui/table): https://github.com/ratatui-org/ratatui/pull/664 --- src/ui/widget/table.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/widget/table.rs b/src/ui/widget/table.rs index e50603b13..f68a078fc 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());