fix ord
This commit is contained in:
@@ -26,9 +26,16 @@ pub fn ordnance(ui: &mut Ui, data: &Res<Ordnance>, overview: &Res<super::Overvie
|
||||
.size
|
||||
.max(ui.spacing().interact_size.y);
|
||||
|
||||
let mut cols = Vec::new();
|
||||
let mut amount_cols = 0;
|
||||
|
||||
for _ in &data.flights {
|
||||
for group in &data.flights {
|
||||
if group.len() > amount_cols {
|
||||
amount_cols = group.len();
|
||||
}
|
||||
}
|
||||
|
||||
let mut cols = Vec::new();
|
||||
for _ in 0..amount_cols {
|
||||
cols.push(("", Column::remainder()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user