Skip to content

Commit

Permalink
DefaultDropDownDirection = ToolStripDropDownDirection.AboveLeft
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jul 12, 2021
1 parent 8704a6b commit 99d2598
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/DiffEngineTray/MenuBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ static class MenuBuilder
public static ContextMenuStrip Build(Action exit, Action launchOptions, Tracker tracker)
{
var menu = new ContextMenuStrip();
menu.DefaultDropDownDirection = ToolStripDropDownDirection.AboveLeft;
var items = menu.Items;
menu.Closed += delegate
{
Expand Down Expand Up @@ -147,6 +148,7 @@ static IEnumerable<ToolStripItem> BuildMovesAndDeletes(string? name, Tracker tra
static ToolStripItem BuildDelete(TrackedDelete delete, Action accept)
{
var menu = new ToolStripMenuItem($"{delete.Name}");
menu.DropDownDirection = ToolStripDropDownDirection.Left;
menu.DropDownItems.Add(new MenuButton("Accept delete", accept));
menu.DropDownItems.Add(BuildShowInExplorer(delete.File));
return menu;
Expand All @@ -155,7 +157,7 @@ static ToolStripItem BuildDelete(TrackedDelete delete, Action accept)
static ToolStripItem BuildMove(TrackedMove move, Action accept)
{
var menu = new ToolStripMenuItem($"{move.Name} ({move.Extension})");

menu.DropDownDirection = ToolStripDropDownDirection.Left;
menu.DropDownItems.Add(new MenuButton("Accept move", accept));
if (move.Exe != null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649</NoWarn>
<Version>6.8.3-beta.2</Version>
<Version>6.8.3</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Testing, Snapshot, Diff, Compare</PackageTags>
<Description>Launches diff tools based on file extensions. Designed to be consumed by snapshot testing libraries.</Description>
Expand Down

0 comments on commit 99d2598

Please sign in to comment.