Re: Context menu
Marius Hanganu <hanganum <at> gmail.com>
2005-11-01 02:11:40 GMT
Tested your fixes. It works quite neat now.
One small exception though: tried the following:
<div dojoType="contextMenu" targetNodesId="test2"><!--Note no
spaces between nodeIds-->
<div dojoType="menuitem">
<img height="15" align="middle" src="images/fisheye_1.png">
Item 1
</div>
<div dojoType="menuitem">
<img height="15" align="middle" src="images/fisheye_4.png">
Item 2
</div>
</div>
<div dojoType="contextMenu" targetNodesId="test1"><!--Note no
spaces between nodeIds-->
<div dojoType="menuitem">
<img height="15" align="middle" src="images/fisheye_1.png">
MENU2-Item 1
</div>
<div dojoType="menuitem">
<img height="15" align="middle" src="images/fisheye_4.png">
MENU2-Item 2
</div>
</div>
And what I get is both menus displayed - when clicking on one after
clicking on the other. Maybe all the other dojoType="contextMenu"
should be made invisible.
Nice job, I will definitely use it in my projects
Marius
Fredrik Johansson wrote:
måndag 31 oktober 2005 06.50 skrev Marius Hanganu:
Yeah, attaching context menus to specific dom nodes is a MUST. Besides
that, I also added a ticket about context menu getting out of the page:
http://dojotoolkit.org/trac/ticket/179
Well I worked on my file ContextMenu.js in the html folder a bit more.
You can test position changed code on:
http://www.vaxjorc.com/Test/test_dojo/dojo/tests/widget/test_ContextMenu2.html
and node connect code on:
http://www.vaxjorc.com/Test/test_dojo/dojo/tests/widget/test_ContextMenu1.html
The bug that made context menu disapear as soon as I released right
mousebutton in Konq is also fixed, at least it works on my machine.
/ Fredrik Johansson
Fredrik - I also tested your patch in Firefox 1.0.7 and it doesn't seem to
be working.
Regards,
Marius
Fredrik Johansson wrote:
söndag 30 oktober 2005 18.02 skrev Alex Russell:
On Sunday 30 October 2005 3:32 am, Marius Hanganu wrote:
Hello,
In dojo 0.1 it seems that the context menu is not working. Any ideas
on how can I make it work? (tried Firefox and IE)
Yeah, there are a lot of b0rken widgets in the 0.1 package. Give one of
the nightlies a try, and if it's not working there, please file a bug
against the 0.2 release.
http://archive.dojotoolkit.org/nightly-profiles/
Regards
Funny, I was just about to post bugfix for ContextMenu that makes it work
in konqueror and it allows you to set contextmenu to specific dom nodes,
not just the hole page.
It still is a bit buggy in Konqueror, you need to hold right mousebutton
down for half a sec for it to stick, but I thought that was better than no
contextmenu att all.
For the changed files go to http://dojotoolkit.org/trac/ticket/180
Hope find the changes useful.
/ Fredrik Johansson
_______________________________________________
Dojo-interest mailing list
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
_______________________________________________
Dojo-interest mailing list
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest
_______________________________________________
Dojo-interest mailing list
Dojo-interest <at> dojotoolkit.org
http://dojotoolkit.org/mailman/listinfo/dojo-interest