Make notes panel text column fixed-width

The default width doesn't line up with the right edge of the panel,
so either you're not seeing as much text as you could, or it's
scrollable and will lurch over if you double-click in the text area.

Now the width is set to '*', which makes the column wide enough to
fill the panel, and automatically resizes as things shift.
This commit is contained in:
Andy McFadden committed 2025-07-07 18:01:02 -07:00
1 parent 7fdf459899
commit c0e3809938
1 file changed
+3
+3
View File
@@ -571,6 +571,9 @@ namespace SourceGen.WpfGui {
AppSettings.Global.GetString(AppSettings.NOTEWIN_COL_WIDTHS, null));
RestoreColumnWidths(symbolsGrid,
AppSettings.Global.GetString(AppSettings.SYMWIN_COL_WIDTHS, null));
// Force the Notes text column width to be '*', i.e. fill the panel.
notesGrid.Columns[1].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
}
private void RestoreColumnWidths(GridView gv, string str) {
int[] widths = null;