Archived
Changed: refactor
This commit is contained in:
1 parent
472dd3ba20
commit
928adf8f04
2 files changed
+5
-6
No files matched your search
+1
-5
@@ -686,14 +686,10 @@ namespace FizzyLauncher
|
|||||||
|
|
||||||
private void tileContainer1_OnSizeChanged(object sender, EventArgs e)
|
private void tileContainer1_OnSizeChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
int newWidth = TilePanelLayout.CalcWidth(tileContainer1.TileWidthCount);
|
int newWidth = this.Padding.Horizontal + SystemInformation.VerticalScrollBarWidth + tileContainer1.CalcWidth;
|
||||||
newWidth += SystemInformation.VerticalScrollBarWidth;
|
|
||||||
newWidth += tileContainer1.CalcWidth;
|
|
||||||
newWidth += this.Padding.Horizontal;
|
|
||||||
|
|
||||||
ThreadControl.SetClientWidth(this, newWidth);
|
ThreadControl.SetClientWidth(this, newWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -47,7 +47,10 @@ namespace FizzyLauncher.Windows.Forms
|
|||||||
|
|
||||||
public int CalcWidth
|
public int CalcWidth
|
||||||
{
|
{
|
||||||
get => flowLayoutPanel1.Padding.Horizontal + flowLayoutPanel1.Margin.Horizontal + this.Left + this.Padding.Horizontal + this.Margin.Horizontal;
|
get =>
|
||||||
|
TilePanelLayout.CalcWidth(this.TileWidthCount) +
|
||||||
|
this.Left + this.Padding.Horizontal + this.Margin.Horizontal +
|
||||||
|
flowLayoutPanel1.Padding.Horizontal + flowLayoutPanel1.Margin.Horizontal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int GroupCount
|
public int GroupCount
|
||||||
|
|||||||
Reference in new issue
Block a user