\r
namespace KancolleSniffer.View.ListWindow\r
{\r
- public class AntiAirPanel : Panel\r
+ public class AntiAirPanel : Panel, IPanelResize\r
{\r
private const int LineHeight = 16;\r
private readonly List<AntiAirLabels> _labelList = new List<AntiAirLabels>();\r
BackPanel = new Panel\r
{\r
Location = new Point(0, y),\r
- Size = new Size(ListForm.PanelWidth, LineHeight)\r
+ Size = new Size(ListForm.PanelWidth, LineHeight),\r
}\r
};\r
_labelList.Add(labels);\r
labels.Move(AutoScrollPosition);\r
}\r
\r
+ public void ApplyResize()\r
+ {\r
+ var width = Width - SystemInformation.VerticalScrollBarWidth - 2;\r
+ SuspendLayout();\r
+ foreach (var labels in _labelList)\r
+ labels.BackPanel.Width = width;\r
+ ResumeLayout();\r
+ }\r
+\r
private void SetRecords()\r
{\r
for (var i = 0; i < _table.Count; i++)\r