mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-22 09:57:40 -05:00
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:
1 parent
0cf9f9d0bd
commit
ccf7c61b99
1 file changed
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user