mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-08 23:19:14 +08:00
Fix Change language after log expansion issue
This commit is contained in:
parent
fcfef2317b
commit
7155ecd05d
@ -1008,10 +1008,20 @@ namespace GrasscutterTools
|
|||||||
private TextBox TxtCommandRunLog;
|
private TextBox TxtCommandRunLog;
|
||||||
private void ExpandCommandRunLog()
|
private void ExpandCommandRunLog()
|
||||||
{
|
{
|
||||||
if (TxtCommandRunLog != null)
|
if (SCBase.IsSplitterFixed)
|
||||||
return;
|
{
|
||||||
if (WindowState == FormWindowState.Maximized)
|
if (WindowState == FormWindowState.Maximized)
|
||||||
WindowState = FormWindowState.Normal;
|
WindowState = FormWindowState.Normal;
|
||||||
|
SCBase.FixedPanel = FixedPanel.Panel1;
|
||||||
|
Size = new Size(Width, Height + TxtCommandRunLogMinHeight);
|
||||||
|
MinimumSize = new Size(MinimumSize.Width, MinimumSize.Height + TxtCommandRunLogMinHeight);
|
||||||
|
SCBase.Panel2MinSize += TxtCommandRunLogMinHeight;
|
||||||
|
SCBase.FixedPanel = FixedPanel.None;
|
||||||
|
SCBase.IsSplitterFixed = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (TxtCommandRunLog == null)
|
||||||
|
{
|
||||||
TxtCommandRunLog = new TextBox
|
TxtCommandRunLog = new TextBox
|
||||||
{
|
{
|
||||||
Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom,
|
Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom,
|
||||||
@ -1023,14 +1033,9 @@ namespace GrasscutterTools
|
|||||||
BackColor = Color.White,
|
BackColor = Color.White,
|
||||||
ScrollBars = ScrollBars.Vertical,
|
ScrollBars = ScrollBars.Vertical,
|
||||||
};
|
};
|
||||||
SCBase.FixedPanel = FixedPanel.Panel1;
|
|
||||||
Size = new Size(Width, Height + TxtCommandRunLogMinHeight);
|
|
||||||
MinimumSize = new Size(MinimumSize.Width, MinimumSize.Height + TxtCommandRunLogMinHeight);
|
|
||||||
SCBase.Panel2MinSize += TxtCommandRunLogMinHeight;
|
|
||||||
SCBase.FixedPanel = FixedPanel.None;
|
|
||||||
SCBase.IsSplitterFixed = false;
|
|
||||||
GrpCommand.Controls.Add(TxtCommandRunLog);
|
GrpCommand.Controls.Add(TxtCommandRunLog);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion - 命令 -
|
#endregion - 命令 -
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user