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

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

This commit is contained in:
Emil Ernerfeldt
2021-01-15 19:36:35 +01:00
parent db591bc56c
commit 03c9cda89b
5 changed files with 87 additions and 23 deletions

View File

@@ -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:");