[grid] Ensure the contents of each grid cell is aligned left+center

This commit is contained in:
Emil Ernerfeldt
2021-01-15 21:17:56 +01:00
parent db591bc56c
commit 03c9cda89b
5 changed files with 87 additions and 23 deletions
@@ -131,7 +131,9 @@ impl super::View for WidgetGallery {
ui.end_row();
ui.label("Separator:");
ui.separator();
// Putting a separator in a grid is kind of meaningless since there is no well-defined direction.
// Normally you'd just do ui.separator(), but here we need to explicitly pick a dimension:
ui.add(egui::Separator::new().horizontal());
ui.end_row();
ui.label("CollapsingHeader:");