Skip to content

ContexMenu - Strange behavior (bug) #1450

Description

@itg-assistant

Valeriano Simeone asked 2018-03-31 17:08:36 UTC

Hello,

I've added a ComponentTool to control (TextBox, ComboBox, etc). When user click with left mouse button on this i call method "show" to view a ContexMenu. But this is shown on top left corner of the browser's window. Only alfter right click it's showen in corret position near the control.

This is code:

var contextMenu = new Wisej.Web.ContextMenu();

// ... add menu items ...

control.ContextMenu = contextMenu;

var toolsContextMenu = new ComponentTool
{
ImageSource = "menu-overflow",
Name = "toolContextMenu"
};

control.Tools.Add(toolsContextMenu);

control.ToolClick += (sender, args) =>  {  contextMenu.Show(control, Placement.BottomRight);   };

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions