Contextmenu not working jstree with Splitter Plugin

281 views
Skip to first unread message

Sebastian

unread,
Jun 11, 2009, 4:42:06 AM6/11/09
to jsTree
Hi,

I am using the jquery splitter plugin found here:
http://methvin.com/splitter/

together with the jquery tree component found here:
http://www.jstree.com/

both work great individually but if i put the jstree inside the
splitter, the trees contextmenu stops working (and gives no error).

The problem occurs only in firefox, the same code works fine in IE7.

Has anyone else had this problem?

I activate my splitter like this:

[code]$("#MySplitter").splitter({
splitVertical: true,
outline: true,
sizeLeft: true,
anchorToWindow: true,
accessKey: "I"
});[/code]

and my tree like this:

[code]$("#JsTree").tree({
data: {
type: "json",
url: "JsTree.axd",
async: true
},
ui: {
context: [
{
id: "test",
label: "Test...",
icon: "images/Menu/test.gif",
action: function(NODE, TREE_OBJ) {
alert("hi");
}
}
]
},
rules: {
deletable: "all",
draggable: "all"
}
});[/code]

vakata

unread,
Jun 12, 2009, 12:35:18 PM6/12/09
to jsTree
Can you point me to a working demo so that I can help you debug?
Regards,
Ivan

Sebastian

unread,
Jun 15, 2009, 4:02:56 AM6/15/09
to jsTree
Ok, i have set up a small demo here:

http://demo.camelonta.se/jstree/

The (new) weird part is that now the tree doesn't even load in
firefox. Still works fine in IE7.

/Sebastian

vakata

unread,
Jun 25, 2009, 6:11:31 PM6/25/09
to jsTree
This is really odd ... There seems to be some kind of an error with
jQuery ... I will try and find out what it is.
Regards,
Ivan

P.S. Sorry for the delay

Michi

unread,
Jul 12, 2009, 3:13:36 PM7/12/09
to jsTree
I have the same Problem.

Is there a solution for this Problem? :)

Michi

On Jun 26, 1:11 am, vakata <ivan.bozha...@gmail.com> wrote:
> This is really odd ... There seems to be some kind of an error with
> jQuery ... I will try and find out what it is.
> Regards,
> Ivan
>
> P.S. Sorry for the delay
>
> On 15 Юни, 11:02, Sebastian <sebastian.claes...@gmail.com> wrote:
>
> > Ok, i have set up a small demo here:
>
> >http://demo.camelonta.se/jstree/
>
> > The (new) weird part is that now the tree doesn't even load in
> > firefox. Still works fine in IE7.
>
> > /Sebastian
>
> > On 12 Juni, 18:35, vakata <ivan.bozha...@gmail.com> wrote:
>
> > > Can you point me to a working demo so that I can help you debug?
> > > Regards,
> > > Ivan
>
> > > On 11 Юни, 11:42, Sebastian <sebastian.claes...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I am using the jquerysplitterplugin found here:http://methvin.com/splitter/
>
> > > > together with the jquery tree component found here:http://www.jstree.com/
>
> > > > both work great individually but if i put the jstree inside the
> > > >splitter, the trees contextmenu stops working (and gives no error).
>
> > > > The problem occurs only in firefox, the same code works fine in IE7.
>
> > > > Has anyone else had this problem?
>
> > > > I activate mysplitterlike this:

vakata

unread,
Jul 13, 2009, 5:34:16 PM7/13/09
to jsTree
In that case the problem was inside splitter itself - there was not a
valid second DIV in the splitter container. If this does not help you
- provide a working example so that I can help you debug, or at least
paste your source here.

Regards,
Ivan

Michi

unread,
Jul 14, 2009, 3:19:11 PM7/14/09
to jsTree
I switched from splitter to UI.Layout and had there the same Problem
that the Contextmenu don"t show up.

The Solution to fix this was to add
.tree-context {
z-index:999;
}

to my css file.

Michi

Darío Javier Cravero

unread,
Jul 14, 2009, 3:57:45 PM7/14/09
to jsTree
Yes,
That's a solution.. It seems that the layout manager out there don't
handle right the z-index relations.
I had the same problem with UI.layout, and I also had a problem
related to the dragging, a partial solution to that is to include
this: #jstree-dragged { z-index: 3000; } anyway it doesn't fix it
completly.

Regards,
Darío
Reply all
Reply to author
Forward
0 new messages