feat(nesting): open the layouts window at 80% of screen height

The layout cards were too small to read while the search ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-20 17:01:19 -05:00
1 parent 0cf9f9d0bd
commit ccf7c61b99
1 file changed
+5 -1
+5 -1
View File
@@ -204,7 +204,11 @@ namespace OpenNest.Forms
Controls.Add(header);
Controls.Add(footer);
MinimumSize = new System.Drawing.Size(640, 420);
ClientSize = new System.Drawing.Size(920, 600);
// Tall enough that the layout cards stay readable while the search runs.
var screen = Owner != null ? Screen.FromControl(Owner) : Screen.FromPoint(Cursor.Position);
Size = new System.Drawing.Size(
Size.Width - ClientSize.Width + 920,
System.Math.Max(MinimumSize.Height, (int)(screen.WorkingArea.Height * 0.8)));
ResumeLayout(true);
}