Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContextMenu is invisible #69

Closed
jouni opened this issue Apr 18, 2017 · 5 comments
Closed

ContextMenu is invisible #69

jouni opened this issue Apr 18, 2017 · 5 comments
Milestone

Comments

@jouni
Copy link
Member

jouni commented Apr 18, 2017

From @tkvtkv on April 18, 2017 11:51

I created a ContextMenu (vaadin-context-menu-0.7.4).

 ContextMenu contextMenu = new ContextMenu(this, false);
        contextMenu.setAsContextMenuOf(butTest);

        contextMenu.addContextMenuOpenListener(new ContextMenu.ContextMenuOpenListener() {
            public void onContextMenuOpen(ContextMenu.ContextMenuOpenListener.ContextMenuOpenEvent event) {
                Notification.show("Context menu on "
                        + event.getSourceComponent().getCaption());
            }
        });

        MenuItem basic = contextMenu.addItem("Basic Item", new ContextMenu.Command() {
            public void menuSelected(com.vaadin.addon.contextmenu.MenuItem selectedItem) {
                //main.addWindow(getAboutDialog());
                labAction.setValue("ContextMenu item 'Basic Item' selected " );
            }
        });

        MenuItem second = contextMenu.addItem("Second Item", new Menu.Command() {
            public void menuSelected(com.vaadin.addon.contextmenu.MenuItem menuItem) {
                labAction.setValue("ContextMenu item 'Second Item' selected " );
            }
        });

When I right mouse click on butTest I see a notification "Context menu on ..." only. But the Context menu is invisible.
contextmenu_notification

What I missed?
Please help me to understand what need to do to show a context menu.

Copied from original issue: vaadin/vaadin-core#102

@dvtrsc
Copy link

dvtrsc commented May 10, 2017

It happens exactly to me. Just after use 'fetch' option in <vaadin.widgetset.mode> (yesterday all was working). No matter if right now I recompile widget, still it does not appear. Now will try to delete all existing related .jar files & try to recompile.

@dvtrsc
Copy link

dvtrsc commented May 10, 2017

Right now, using 'cdn' option and recompiling all, it works again. NOTE: had not deleted existing
.m2/repository/com/vaadin/vaadin-context-menu/2.0.0/vaadin-context-menu-2.0.0.jar, just changed from fetch to cdn + maven clean + maven install.

@tkvtkv
Copy link

tkvtkv commented May 10, 2017

I recompiled it and now all works OK.
Thanks.

@dvtrsc
Copy link

dvtrsc commented May 12, 2017

Again happens, without no changes, just usual recompilation... It fires open event, but no menu is shown.

@elmot
Copy link
Contributor

elmot commented Apr 20, 2018

The issue is not related to ContextMenu, you definitely have troubles with widgetset compilation or browser widgetset caching.

For more details, please refer to https://vaadin.com/docs/v8/framework/addons/addons-maven.html#addons.maven

I close the issue as not a bug.

@elmot elmot closed this as completed Apr 20, 2018
@elmot elmot added this to the Invalid milestone Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants