Re: [qooxdoo-devel] Memory optimization ...

2008-09-18 Thread geo
Hugh, Now it run correctly. Thanks a lot. Hugh Gibson a écrit : >> But I use the EventListener "contextmenu" to display my context >> menu in the tree, I also use a function to create the customized >> menu with this case code I don't know where place the >> "this.remove". > > I remove the

Re: [qooxdoo-devel] Memory optimization ...

2008-09-11 Thread Jonathan Rass
Hi geo! The problem is that every time you call initPopUpMenuAd() you create new objects: one PopUp and one Button. Why don't you just create them once and just update the label and command? I saw, that you save your widgets in the "widgets" map. Just save the menu button too to gain easier a

Re: [qooxdoo-devel] Memory optimization ...

2008-09-11 Thread Hugh Gibson
> But I use the EventListener "contextmenu" to display my context > menu in the tree, I also use a function to create the customized > menu with this case code I don't know where place the > "this.remove". I remove the old context menu when a new one is constructed. That way you know that it's

Re: [qooxdoo-devel] Memory optimization ...

2008-09-10 Thread geo
Alexander, Thanks for your answer. But I use the EventListener "contextmenu" to display my context menu in the tree, I also use a function to create the customized menu with this case code I don't know where place the "this.remove". Please find attach a sample of my code. ---

Re: [qooxdoo-devel] Memory optimization ...

2008-09-10 Thread Alexander Back
Hi, geo wrote: > Alexander. > > you're right I create the menu each time, the items of my trees are > customized. So each menu is different. Completely different? If not, you can create a pool of contextmenus and reuse them. > Thanks for your help, but just one question is there a way to remov

Re: [qooxdoo-devel] Memory optimization ...

2008-09-10 Thread geo
Alexander. you're right I create the menu each time, the items of my trees are customized. So each menu is different. Thanks for your help, but just one question is there a way to remove each time the custom menu from the page when it disappear? Thanks ... Regards Alexander Back a écrit : >

Re: [qooxdoo-devel] Memory optimization ...

2008-09-10 Thread Alexander Back
Hi, geo wrote: > Alexander, > > I noticed the problem in firebug (1.2.0) with Firefox 2.0.0.16 (cf. > qooxdoo.png). > Whenever I open a context menu, a new div appears on the page, but as > soon as the menu disappears this "div" is hidden (display: none) and it > does not removed. Yes, for eve

Re: [qooxdoo-devel] Memory optimization ...

2008-09-08 Thread Alexander Back
Hi, geo wrote: > Hi, > > I found during using the contextual menu, that they are not deleted from > the page but just hidden. > Whenever you display a context menu that creates a new in the page. > Is there a way to avoid this? qooxdoo widgets are tied to their DOM nodes. In the case of the co