mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-06-02 10:34:42 +12:00
#NewBug Fixed slow scrolling, increased version
This commit is contained in:
parent
220238ac36
commit
346b0b69cd
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Reference in a new issue