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

Context menu location is wrong #12

Closed
TransferSIngh opened this issue May 19, 2011 · 6 comments
Closed

Context menu location is wrong #12

TransferSIngh opened this issue May 19, 2011 · 6 comments

Comments

@TransferSIngh
Copy link

Hi,

I have a tree with many nodes so page has scrollbars. If this page is hosted in an iFrame (IE7/8), then scrolling the iframe and right clicking the node shows the context menu way up higher (hidden from view). Is it possible to fix this?

Thanks,
T Singh

@vakata
Copy link
Owner

vakata commented May 24, 2011

Thank you for reporting - I will fix this in the upcoming 1.0 version ... I will begin working on the contextmenu plugin soon!

@vakata
Copy link
Owner

vakata commented Jul 11, 2011

You can take a look at the new contextmenu functions in vakata.js (branch v.1.0). I will see if I can port those to v.pre1.0

@yamichaud
Copy link

Hi all,

I'm using the last commit of jstree and I get a similar behaviour.
When I click (right or left) on a node, the jstree is scrolled up to the top of the tree.
So I am not able to double-click on the node as the second click will happened on the new position.

Do you have any idea how I can solve this ?

@yamichaud
Copy link

Hi all,

I solve the problem. In my case, it was because the page zoom was >100%. With a 100% zoom it works like a charm.

@vakata vakata closed this as completed Sep 7, 2011
@rekhaNagi
Copy link

How can i change the position of context menu according to my page ?

@vakata
Copy link
Owner

vakata commented Oct 28, 2014

Using CSS or JS - if you want CSS - use this selector:

.vakata-context { ... }

How you decide to move the node is up to you - margins or transform will both work.
As for JS - attach a handler like so:

$(document).on("context_show.vakata", function(e, data) {
  data.element.css(...); // data.element is the menu - you can move it here
});

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