View Full Version : How to Add free floating Ext.menu.Menu on a Panel

20 Oct 2009, 5:00 AM
Hi, EveryBody...
Is There A way to add a free floating menu at any place on the browser window?
It is not a need that it has to be added on a panel... Because panel object has a layout , so it is impossible to show the menu on any place (wherever you want) of the panel...zindex of Ext.Layer is also useless while try to show Ext.menu.Menu on an Ext.Layer Object...

20 Oct 2009, 7:26 AM
have you tried creating a new Ext.menu.Menu and specifying x & y attributes to whatever you need, renderTo to something like Ext.getBody() and floating as true?

var menu = new Ext.menu.Menu({
x: 20,
renderTo: Ext.getBody(),
floating: true,
items[//your menu items here]