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

Grid tooltip overlaps with menu #7

Open
guttormvik opened this issue Dec 7, 2015 · 4 comments
Open

Grid tooltip overlaps with menu #7

guttormvik opened this issue Dec 7, 2015 · 4 comments
Labels

Comments

@guttormvik
Copy link

If the grid-row where I right-click has a tooltip, the tooltip is opened on top of the menu.
To get rid of the tooltip I have to move the mouse out of the menu, move it around a bit and then back.

It seems the menu has z-index 20000, and the tooltip has 20001

@samie samie added the bug label Jan 11, 2016
@zealucard
Copy link

Hi, I'm facing the same issue. How to avoid it ? Have you find a solution ?
Thank you for your help.

@guttormvik
Copy link
Author

The problem is still there.

When I test, I see that any tooltip that is open before I right-click is closed.
But if I move the mouse to the row and right-click before the tooltip is opened, I get the tooltip on top of the menu.

This is with Vaadin 7.6.7 and vaadin-context-menu 0.7.1

@zealucard
Copy link

I get the same result with Vaadin 7.6.8 and vaadin-context-menu 0.7.4

@igolovan81
Copy link

Add following workaround to grid :

addItemClickListener(new ItemClickEvent.ItemClickListener() {
@OverRide
public void itemClick(ItemClickEvent event) {
if (event.getButton() == MouseEventDetails.MouseButton.RIGHT) {
removeAllActionHandlers();
JavaScript.getCurrent().execute("hideTooltip()");
for (Action.Handler actionHandler : getActionHandlers()) {
addActionHandler(actionHandler);
}
}
}
});

and implement in JS function hiding tooltip logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants