[Feature] Option to appear at mouse location (#135), version 1.0.17.47

This commit is contained in:
Markus Hofknecht 2021-05-28 23:23:05 +02:00
parent 7b526db87e
commit c0d71c6948
2 changed files with 6 additions and 6 deletions

View file

@ -39,5 +39,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("1.0.17.46")]
[assembly: AssemblyFileVersion("1.0.17.46")]
[assembly: AssemblyVersion("1.0.17.47")]
[assembly: AssemblyFileVersion("1.0.17.47")]

View file

@ -299,6 +299,10 @@ namespace SystemTrayMenu.UserInterface
Menu menuPredecessor,
StartLocation startLocation)
{
// Update the height and width
AdjustDataGridViewHeight(menuPredecessor, bounds.Height);
AdjustDataGridViewWidth();
if (menuPredecessor != null)
{
// Ignore start as we use predecessor
@ -314,10 +318,6 @@ namespace SystemTrayMenu.UserInterface
startLocation = StartLocation.Predecessor;
}
// Update the height and width
AdjustDataGridViewHeight(menuPredecessor, bounds.Height);
AdjustDataGridViewWidth();
// Calculate X position
int x;
switch (startLocation)