2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-12-15 04:14:58 +01:00

[Core] Improve(?) Plugin List column sizing (#133)

After populating the list of plugins, auto-size the columns once. In the Resize event handler, do what you did before but account for the scrollbar width too. Prevents horizontal scrollbar appearing except for really fast resize movements.

I didn't try it yet with fewer than a scrollable # of plugins yet.

This cleans up my commented out code from #128.
This commit is contained in:
F K
2024-01-23 19:21:02 -05:00
committed by GitHub
parent 7e9c50be09
commit 95d0a28004
2 changed files with 4 additions and 7 deletions

View File

@@ -32,6 +32,9 @@ namespace Observatory.UI
PluginList.Items.Add(item);
}
}
PluginList.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
PluginList.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
}
private static string PluginStatusString(PluginManager.PluginStatus status)