Browse Source

Fix resizable columns option in the table demo (#2780)

pull/2855/head
Boris-Chengbiao Zhou 2 years ago
committed by GitHub
parent
commit
8eeb3e0d28
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      crates/egui_demo_lib/src/demo/table_demo.rs

10
crates/egui_demo_lib/src/demo/table_demo.rs

@ -126,15 +126,11 @@ impl TableDemo {
let mut table = TableBuilder::new(ui)
.striped(self.striped)
.resizable(self.resizable)
.cell_layout(egui::Layout::left_to_right(egui::Align::Center))
.column(Column::auto())
.column(Column::initial(100.0).range(40.0..=300.0).resizable(true))
.column(
Column::initial(100.0)
.at_least(40.0)
.resizable(true)
.clip(true),
)
.column(Column::initial(100.0).range(40.0..=300.0))
.column(Column::initial(100.0).at_least(40.0).clip(true))
.column(Column::remainder())
.min_scrolled_height(0.0);

Loading…
Cancel
Save