container.add(button);
viewport.add(container , new AnchorData("100% 100%", new Margins(10)));
RootPanel.get().add(viewport);
}
}Click on the button, that opens the windows.
Try to do anything on the listview (for example moving the scrollbar or beginning a DnD), the listview disappears.

How can I correct that ?

Thanks in advance for your help.

(note with gxt 2.1.1 it appears only on DnD, not while moving the scrollbar)

Nico33

8 Mar 2010, 3:49 AM

Maybe the listview doesn't work on a window ... :((

Nico33

9 Mar 2010, 9:30 AM

no idea ?

Nico33

11 Mar 2010, 4:41 AM

I'll give up this idea, and will try something without a window ...

sven

11 Mar 2010, 5:31 AM

Remove the call to setBounds. This is unneeded in the place you have it and is making the problem

Nico33

11 Mar 2010, 1:04 PM

Thanks, this is working as usual.

To avoid in the future to annoy you, how did you achieve to know what was wrong in my code ?
I tryed to debug, but can't see what's wrong.
Why did setbounds run this issue and how to prevent it ?

sven

11 Mar 2010, 1:08 PM

setBounds was setting a top and left value. The dragging set position to relative and so it was jumping away.

I simple started the testcode and looked at it with firebug before and after dragging. That was how i found it.