mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-05-29 08:39:34 +12:00
[Feature] Option to appear at mouse location (#135), version 1.0.17.47
This commit is contained in:
parent
7b526db87e
commit
c0d71c6948
|
@ -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")]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue