From a9fedcaf48b83a7d1c67cd2deb499ae581a3a5f8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 09:11:57 +0000 Subject: [PATCH 1/3] Initial plan From 03952044ebd640be9b18954f2956777af198400e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 09:15:19 +0000 Subject: [PATCH 2/3] Fix combobox overflow in SelectDialog by adjusting layout after items are added Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com> --- .../BluePointLilac.Controls/SelectDialog.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs b/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs index 0002e0de..c3914355 100644 --- a/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs +++ b/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs @@ -69,6 +69,8 @@ public string[] Items { cmbItems.Items.Clear(); cmbItems.Items.AddRange(value); + // Recalculate layout after items are added to accommodate auto-sized combobox + AdjustLayout(); } } @@ -124,8 +126,15 @@ private void InitializeComponents() Controls.AddRange(new Control[] { cmbItems, btnOK, btnCancel }); var a = 20.DpiZoom(); cmbItems.Left = a; - cmbItems.Width = 85.DpiZoom(); cmbItems.Top = btnOK.Top = btnCancel.Top = a; + // Initial layout will be adjusted after items are added + AdjustLayout(); + } + + private void AdjustLayout() + { + var a = 20.DpiZoom(); + // Position buttons after combobox (which may have auto-adjusted its width) btnOK.Left = cmbItems.Right + a; btnCancel.Left = btnOK.Right + a; ClientSize = new Size(btnCancel.Right + a, btnCancel.Bottom + a); From f243e6025abb54fada3fd67f26c44b1217b6005d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 09:15:55 +0000 Subject: [PATCH 3/3] Remove redundant AdjustLayout call from InitializeComponents Co-authored-by: Jack251970 <53996452+Jack251970@users.noreply.github.com> --- ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs b/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs index c3914355..bf75e360 100644 --- a/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs +++ b/ContextMenuManager/BluePointLilac.Controls/SelectDialog.cs @@ -127,8 +127,7 @@ private void InitializeComponents() var a = 20.DpiZoom(); cmbItems.Left = a; cmbItems.Top = btnOK.Top = btnCancel.Top = a; - // Initial layout will be adjusted after items are added - AdjustLayout(); + // Layout will be adjusted when items are added via the Items property setter } private void AdjustLayout()