Skip to content

Commit ee674b5

Browse files
committed
Fix display order of flags in tiledata compare plugin.
1 parent 11fb5c7 commit ee674b5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

UoFiddler.Plugin.Compare/UserControls/CompareTileDataControl.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ private void SetupFlagsPanel(
140140
// Header row
141141
var header = new Panel { Dock = DockStyle.Top, Height = 22, BackColor = SystemColors.ControlLight };
142142
var hLbl = new Label { Text = "Flag", Dock = DockStyle.Fill, TextAlign = ContentAlignment.MiddleLeft, Padding = new Padding(4, 0, 0, 0) };
143-
var hSec = new Label { Text = "Sec", Width = 44, Dock = DockStyle.Right, TextAlign = ContentAlignment.MiddleCenter };
144143
var hOrg = new Label { Text = "Org", Width = 44, Dock = DockStyle.Right, TextAlign = ContentAlignment.MiddleCenter };
144+
var hSec = new Label { Text = "Sec", Width = 44, Dock = DockStyle.Right, TextAlign = ContentAlignment.MiddleCenter };
145145
header.Controls.Add(hLbl);
146-
header.Controls.Add(hSec);
146+
// Highest index docks first, so hSec (added last) takes the rightmost slot above secChk (col 2),
147+
// and hOrg (added second) ends up to its left above orgChk (col 1).
147148
header.Controls.Add(hOrg);
149+
header.Controls.Add(hSec);
148150

149151
// Scrollable area
150152
var scroll = new Panel { Dock = DockStyle.Fill, AutoScroll = true };

0 commit comments

Comments
 (0)