#NewBug Fixed slow scrolling, increased version

This commit is contained in:
Markus Hofknecht 2020-03-14 08:52:49 +01:00
parent 220238ac36
commit 346b0b69cd
2 changed files with 8 additions and 3 deletions

View file

@ -43,6 +43,7 @@ namespace SystemTrayMenu
public int Level = 0;
FadeForm FadeForm = null;
bool autoResizeRowsDone = false;
public Menu()
{
@ -180,7 +181,11 @@ namespace SystemTrayMenu
Menu menuPredecessor)
{
DataGridViewElementStates states = DataGridViewElementStates.None;
this.dgv.AutoResizeRows();
if (!autoResizeRowsDone)
{
autoResizeRowsDone = true;
this.dgv.AutoResizeRows();
}
int height = this.dgv.Rows.GetRowsHeight(states);
if (height > heightMax)
{

View file

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.1.258")]
[assembly: AssemblyFileVersion("0.9.1.258")]
[assembly: AssemblyVersion("0.9.1.259")]
[assembly: AssemblyFileVersion("0.9.1.259")]