EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Merge pull request #980 from nanox333/codex/fix-978-project-settings-dialog
Brandon Thomasbb7f9b421f62
diff --cc crates/ui-egui/src/panels/forms.rsindex dedd48f1e,d5cb1f00e..2193b605d--- a/crates/ui-egui/src/panels/forms.rs+++ b/crates/ui-egui/src/panels/forms.rs@@@ -765,9 -766,10 +765,11 @@@ pub fn show_form(app: &mut EffectcraftAlet h = 120.0 + rows;let mut regs: Vec<(String, egui::Rect, String)> = vec![];let mut browse: Option<usize> = None;+ let mut focused = false;- // Wide enough for a label column and a 240 px popup without a horizontal scroll bar.- super::dialogs::modal(ctx, &f.title.clone(), vec2(480.0, h), t, |ui| {+ // Project Settings needs room for its labels and the selected GPU adapter name. At the+ // generic form width its grid overflows, pushing the buttons off the visible area (#978).+ let width = if f.title == "Project Settings" { 800.0 } else { 480.0 };+ super::dialogs::modal(ctx, &f.title.clone(), vec2(width, h), t, |ui| {egui::Grid::new("form-grid").num_columns(2).spacing([14.0, 10.0]).show(ui, |ui| {for (i, fl) in f.fields.iter_mut().enumerate() {ui.label(tr(&fl.label));