Skip to content

Commit

Permalink
Make column size match the area available in ConsoleListView
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis committed Aug 20, 2021
1 parent 3b295be commit ff7f67c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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 @@ -107,6 +107,7 @@ bool deepView

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

Text += " v" + applicationVersionService.Version;

Expand Down Expand Up @@ -565,5 +566,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 ff7f67c

Please sign in to comment.