1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

[grid] Add optional minimal row height

This commit is contained in:
Emil Ernerfeldt
2021-01-14 23:36:23 +01:00
parent 6f814b9516
commit 641a302e0a
2 changed files with 28 additions and 8 deletions

View File

@@ -54,7 +54,10 @@ impl super::View for WidgetGallery {
color,
} = self;
egui::Grid::new("my_grid").striped(true).show(ui, |ui| {
let grid = egui::Grid::new("my_grid")
.striped(true)
.min_row_height(ui.style().spacing.interact_size.y);
grid.show(ui, |ui| {
ui.label("Label:");
ui.label("Welcome to the widget gallery!");
ui.end_row();