Hugh Gibson wrote:
>
>> I figured that I can use qx.ui.menu.Menu from one the the demos and
>> its working.
>> The problem is that for leaf nodes in my tree, the context menu
>> appears correctly at the bottom (but not at the right ... it starts
>> not from bottom right of the node but from its bottom and extreme
>> left).
>
> You are using getPageBoxLeft so I'm not surprised thst it's positioned at
> the left.
>
> I have also tried :
>
> var ele = myTree.getSelectedElement().getElement();
>
> contextMenu.setLeft(qx.html.Location.getPageBoxRight(ele));
> contextMenu.setTop(qx.html.Location.getPageBoxBottom(ele));
>
> as well as,
>
> contextMenu.setLeft(qx.bom.element.Location.getRight(ele));
> contextMenu.setTop(qx.bom.element.Location.getBottom(ele));
>
> but, it is not giving the desired result. No clues why !!
>
>> Also, for non-leaf nodes, the context menu gets shifted from the
>> top and appears not below the non-leaf node but below its lowest
>> leaf node.
>> I am still trying to figure out the problem here.
>
> Sounds like the non-leaf node contains all its leaf nodes rather than
> being just above it. I suggest you se Firebug's HTML inspect option to
> find a relevant element you can use for real coordinates like a label for
> the node. Or take the top of the element and add afixed offset.
>
> Hugh
>
> thanks for the suggestion ... i will try to find a way .. there must be
> some easy way in Qooxdoo :-)
>
>
Amit
--
View this message in context:
http://n2.nabble.com/Properties-Window-on-clicking-a-node-on-a-Tree-tp1112787p1117582.html
Sent from the qooxdoo mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel