Skip to content

Commit

Permalink
fix(ui/table): ratatui/ratatui#664
Browse files Browse the repository at this point in the history
  • Loading branch information
sarub0b0 committed Dec 29, 2023
1 parent 5278448 commit ff8131a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ui/widget/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ff8131a

Please sign in to comment.