PDA

View Full Version : setWindowResize() question



neonzebra
13 Jan 2010, 3:37 PM
Hello. I have code looks something like this:




public class MyContainer extends LayoutContainer {
ContentPanel cp;

public MyContainer() {
cp = new ContentPanel();
cp.setLayout(new FitLayout());
add(cp);
setOnWindowResize(true);
}

public void onWindowResize(int width, int height) {
GWT.log("window resized",null);
}
}



However, the GWT log never shows the 'window resized' message.

I think I may be doing something incorrectly, but I can't seem to find any documentation of the onWindowResize() method anywhere.