I changed the event to a contextmenu event and it now works - I am not sure
why.

James


dperez wrote:
> 
> Maybe is off the screen.
> Try setLeft(0) and setTop(0) as a test.
> 
> 
> jamescowan wrote:
>> 
>> Hi
>> 
>> I have attached a mousedown event on an element and within the event
>> handler 
>> I want to popup a menu that I have attached to the document. The event
>> handler is called ok but the menu does not appear.
>> 
>>                 if (event.getButton() == "right")
>>                 {
>>                 var el = this.getElement();
>> 
>>                        
>> m_visitMenu.setLeft(qx.dom.DomLocation.getPageBoxLeft(el));
>>                        
>> m_visitMenu.setTop(qx.dom.DomLocation.getPageBoxBottom(el));
>>                         m_visitMenu.show();
>>                 }
>> 
>> This is the code I used to create the menu
>> 
>> var m_visitMenu = new qx.ui.menu.Menu();
>> var visitButton = new qx.ui.menu.MenuButton("Visit");
>> 
>> m_visitMenu.add(visitButton);
>> doc.add(m_visitMenu);
>> 
>> Is there a step that I am missing?
>> 
>> James 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/popup-menu-tf2508028.html#a7008703
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to