From c09e266b2c7088fbaee326c15b859f7c679a483f Mon Sep 17 00:00:00 2001 From: Marek Frniak Date: Wed, 1 Apr 2026 12:12:04 +0200 Subject: [PATCH] Bugfix ComponentPropertiesDlg frm size 140x80 --- TBF/TBF.csproj | 28 ++++++++++++++----- .../Components/ComponentParametersDlg.cs | 12 ++++++-- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/TBF/TBF.csproj b/TBF/TBF.csproj index 3729549b8..da9be45ed 100644 --- a/TBF/TBF.csproj +++ b/TBF/TBF.csproj @@ -1049,7 +1049,9 @@ - + + UserControl + @@ -1386,12 +1388,16 @@ - + + UserControl + GenesisHeadTestCtrl.cs - + + UserControl + GenesisCfgCtrl.cs @@ -1410,9 +1416,13 @@ - + + UserControl + - + + UserControl + @@ -1715,7 +1725,9 @@ - + + UserControl + @@ -1771,7 +1783,9 @@ - + + Form + diff --git a/TBF/UI/Bench/Components/ComponentParametersDlg.cs b/TBF/UI/Bench/Components/ComponentParametersDlg.cs index 908697976..1a0261226 100644 --- a/TBF/UI/Bench/Components/ComponentParametersDlg.cs +++ b/TBF/UI/Bench/Components/ComponentParametersDlg.cs @@ -189,8 +189,16 @@ namespace TBF.UI.Bench.Components int extraWidth = splitContainer.Panel2.Width + 40; int extraHeight = 80; - this.Width = desired.Width + extraWidth; - this.Height = desired.Height + extraHeight; + if (!desired.IsEmpty) + { + this.Width = desired.Width + extraWidth; + this.Height = desired.Height + extraHeight; + } + else + { + //this.Width += extraWidth; + //this.Height += extraHeight; + } // Do not exceed screen working area var screen = Screen.FromControl(this).WorkingArea;