mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-27 03:17:45 +00:00
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:
1 parent
7fdf459899
commit
c0e3809938
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user