dpcowx
28 Nov 2008, 7:55 PM
Hi gang,
I'm trying to reproduce the BorderLayoutExample from the Explorer sample. I've literally copied BorderLayoutExample from the samples folder (with no changes) and this is what I've got in my onModuleLoad(). Seems pretty basic, so I thought it would "just work".
public void onModuleLoad() {
Viewport v = new Viewport();
v.setLayout(new FillLayout());
// BorderLayoutExample is copy & pasted from sample
BorderLayoutExample ble = new BorderLayoutExample();
v.add(ble);
RootPanel.get().add(v);
}
Things work fine except for the splitter. When I use the mouse to grab the splitter and try to resize <say> the west area, the whole app starts misbehaving (e.g. it stops responding to mouse events, the UI stops painting, etc).
What am I doing wrong here? Am I supposed to be overriding some events
Thanks,
Daniel
I'm trying to reproduce the BorderLayoutExample from the Explorer sample. I've literally copied BorderLayoutExample from the samples folder (with no changes) and this is what I've got in my onModuleLoad(). Seems pretty basic, so I thought it would "just work".
public void onModuleLoad() {
Viewport v = new Viewport();
v.setLayout(new FillLayout());
// BorderLayoutExample is copy & pasted from sample
BorderLayoutExample ble = new BorderLayoutExample();
v.add(ble);
RootPanel.get().add(v);
}
Things work fine except for the splitter. When I use the mouse to grab the splitter and try to resize <say> the west area, the whole app starts misbehaving (e.g. it stops responding to mouse events, the UI stops painting, etc).
What am I doing wrong here? Am I supposed to be overriding some events
Thanks,
Daniel