mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
[grid] Set default row height to interact_size.y
It is what we use for horizontal layouts, and makes sense.
This commit is contained in:
@@ -54,9 +54,7 @@ impl super::View for WidgetGallery {
|
||||
color,
|
||||
} = self;
|
||||
|
||||
let grid = egui::Grid::new("my_grid")
|
||||
.striped(true)
|
||||
.min_row_height(ui.style().spacing.interact_size.y);
|
||||
let grid = egui::Grid::new("my_grid").striped(true);
|
||||
grid.show(ui, |ui| {
|
||||
ui.label("Label:");
|
||||
ui.label("Welcome to the widget gallery!");
|
||||
|
||||
Reference in New Issue
Block a user