From 9e4a18bc149f54a2da108b093ac18a6fc617e0d6 Mon Sep 17 00:00:00 2001 From: frKieran <172341841+frKieran@users.noreply.github.com> Date: Sat, 10 Oct 2026 20:35:30 -0400 Subject: [PATCH] Dock the Mario, Main Save, Memory and Ghost variable panels instead of anchoring them These four panels were anchored on all four sides, with a designer size a few pixels larger than the area their parent gives them (Mario: 703 px wide at x = 2 in a padded Panel2 about 704 px wide). On .NET 8+, WinForms' DefaultLayout keeps the previous right/bottom anchor when a control's new edge lands outside its parent ("reuse old anchors info to prevent losing control beyond right edge"), and here that previous anchor appears to be the one from UserControl's default 150 px width. So the panel ends a fixed distance before the right edge (549 px on the Mario tab, 325 on Main Save), the rest of the tab stays blank and a horizontal scrollbar appears. Every other tab with this layout already uses Dock = Fill; these now do too. Co-Authored-By: Claude Opus 5.5 --- STROOP/Tabs/GhostTab/GhostTab.Designer.cs | 2 +- STROOP/Tabs/MainSaveTab.Designer.cs | 4 +--- STROOP/Tabs/MarioTab.Designer.cs | 4 +--- STROOP/Tabs/MemoryTab.Designer.cs | 4 +--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/STROOP/Tabs/GhostTab/GhostTab.Designer.cs b/STROOP/Tabs/GhostTab/GhostTab.Designer.cs index 4226058b4..22ba7235f 100644 --- a/STROOP/Tabs/GhostTab/GhostTab.Designer.cs +++ b/STROOP/Tabs/GhostTab/GhostTab.Designer.cs @@ -378,7 +378,7 @@ private void InitializeComponent() // // _variablePanelGhost // - _variablePanelGhost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)); + _variablePanelGhost.Dock = System.Windows.Forms.DockStyle.Fill; _variablePanelGhost.AutoScroll = true; _variablePanelGhost.DataPath = "Config/GhostData.xml"; _variablePanelGhost.elementNameWidth = null; diff --git a/STROOP/Tabs/MainSaveTab.Designer.cs b/STROOP/Tabs/MainSaveTab.Designer.cs index 97256d57d..342c48540 100644 --- a/STROOP/Tabs/MainSaveTab.Designer.cs +++ b/STROOP/Tabs/MainSaveTab.Designer.cs @@ -1509,9 +1509,7 @@ private void InitializeComponent() // // watchVariablePanelMainSave // - this._variablePanelMainSave.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this._variablePanelMainSave.Dock = System.Windows.Forms.DockStyle.Fill; this._variablePanelMainSave.DataPath = "Config/MainSaveData.xml"; this._variablePanelMainSave.Location = new System.Drawing.Point(2, 2); this._variablePanelMainSave.Margin = new System.Windows.Forms.Padding(0); diff --git a/STROOP/Tabs/MarioTab.Designer.cs b/STROOP/Tabs/MarioTab.Designer.cs index 9c8ebf0ab..0207ba407 100644 --- a/STROOP/Tabs/MarioTab.Designer.cs +++ b/STROOP/Tabs/MarioTab.Designer.cs @@ -766,9 +766,7 @@ private void InitializeComponent() // // watchVariablePanelMario // - this._variablePanelMario.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this._variablePanelMario.Dock = System.Windows.Forms.DockStyle.Fill; this._variablePanelMario.DataPath = "Config/MarioData.xml"; this._variablePanelMario.Location = new System.Drawing.Point(2, 2); this._variablePanelMario.Margin = new System.Windows.Forms.Padding(0); diff --git a/STROOP/Tabs/MemoryTab.Designer.cs b/STROOP/Tabs/MemoryTab.Designer.cs index 4cfe952d6..ba0bd7bd8 100644 --- a/STROOP/Tabs/MemoryTab.Designer.cs +++ b/STROOP/Tabs/MemoryTab.Designer.cs @@ -384,9 +384,7 @@ private void InitializeComponent() // // watchVariablePanelMemory // - this._variablePanelMemory.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this._variablePanelMemory.Dock = System.Windows.Forms.DockStyle.Fill; this._variablePanelMemory.DataPath = "Config/ObjectData.xml"; this._variablePanelMemory.Location = new System.Drawing.Point(2, 2); this._variablePanelMemory.Margin = new System.Windows.Forms.Padding(0);