From f99ba97b2814d71cb7aedfc712e25c767de021c3 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 15 Oct 2026 21:12:18 -0400 Subject: [PATCH] fix(desktop): keep Cut-off Settings button visible beside the checkbox The automatic scrap cut-offs checkbox's dynamic text (spacing and tail length) could grow wide enough to push the adjacent Cut-off Settings button past the side panel's edge. Wrap the checkbox text and stack the button below it instead of beside it. Co-Authored-By: Claude Sonnet 5 --- OpenNest/Forms/CuttingInspectionPanel.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OpenNest/Forms/CuttingInspectionPanel.cs b/OpenNest/Forms/CuttingInspectionPanel.cs index 9ebfb486..d6520d39 100644 --- a/OpenNest/Forms/CuttingInspectionPanel.cs +++ b/OpenNest/Forms/CuttingInspectionPanel.cs @@ -58,7 +58,7 @@ internal sealed class CuttingInspectionPanel : UserControl private readonly Button previousButton = new() { Text = "Previous", AutoSize = true }; private readonly Button nextButton = new() { Text = "Next", AutoSize = true }; private readonly CheckBox keepOrderCheckBox = new() { Text = "Keep current part order", AutoSize = true }; - private readonly CheckBox autoCutOffsCheckBox = new() { AutoSize = true }; + private readonly CheckBox autoCutOffsCheckBox = new() { AutoSize = true, MaximumSize = new Size(440, 0) }; private readonly FlowLayoutPanel existingWorkBanner = new() { AutoSize = true, @@ -148,7 +148,13 @@ internal sealed class CuttingInspectionPanel : UserControl units = editor.Nest.Units; cutOffOptions = lastCutOffOptions.TryGetValue(units, out var last) ? Copy(last) : DefaultCutOffOptions(units); ShowCutOffOptions(); - var cutOffRow = new FlowLayoutPanel { AutoSize = true, WrapContents = false, Margin = Padding.Empty }; + var cutOffRow = new FlowLayoutPanel + { + AutoSize = true, + FlowDirection = FlowDirection.TopDown, + WrapContents = false, + Margin = Padding.Empty + }; cutOffRow.Controls.AddRange([autoCutOffsCheckBox, cutOffSettingsButton]); existingWorkLabel.Font = new Font(Font, FontStyle.Bold); existingWorkBanner.Controls.AddRange([existingWorkLabel, clearExistingButton]);