Skip to content

Commit

Permalink
Merge pull request #126 from dennis/fix-column-width-for-consolelistview
Browse files Browse the repository at this point in the history
Make column size match the area available in ConsoleListView
  • Loading branch information
dennis committed Aug 20, 2021
2 parents fd097a4 + ff7f67c commit b6eb04e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Components/WinFormUI/Forms/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Components/WinFormUI/Forms/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ bool deepView

EventsCollected.Selected(LuaScriptTreeNode);
EventsTabControl.SelectedIndex = 1;
ConsoleListView.Columns[0].Width = EventsTabControl.Width - 20;

Text += " v" + applicationVersionService.Version;

Expand Down Expand Up @@ -599,5 +600,10 @@ private void CopyLuaHandlerCodeMenuItem_Click(object sender, EventArgs e)
";
CopyToClipBoard(code);
}

private void EventsTabControl_Resize(object sender, EventArgs e)
{
ConsoleListView.Columns[0].Width = EventsTabControl.Width - 20;
}
}
}

0 comments on commit b6eb04e

Please sign in to comment.