ggeorg / gwt-mosaic

Automatically exported from code.google.com/p/gwt-mosaic
1 stars 0 forks source link

WindowPanel.Show() method crashes IE 8 #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add the following class as inner class to the 'Hello World' application:

    public class testWindow extends WindowPanel {

        public testWindow(String caption) {

            super(caption, true, false);

            LayoutPanel layoutPanel = new LayoutPanel(new BoxLayout(Orientation.VERTICAL));

            add(layoutPanel);

            setContentSize(327, 160);
        }

    }
    private ClickHandler crashIE8ClickHandler = new ClickHandler() {

        public void onClick(ClickEvent event) {
            for (int i = 0; i < 5; i++) {
                testWindow testWindow = new testWindow("Window: " + i);
                testWindow.setPopupPosition(30 + (i * 30), 30 + (i * 30));
                testWindow.show();
            }
        }
    };

Connect this clickhandler to one of the buttons. 
Pressing this button works as expected on all browsers except in IE8.
IE8 will crash in the testWindowShow() method.
IE8 crashes both in debug-mode as in deployment mode.

I tried both GWT 2.1.1 and GWT 2.0.4

Original issue reported on code.google.com by c.blijke...@gmail.com on 3 Feb 2011 at 1:40

GoogleCodeExporter commented 9 years ago
It turned out that the setContentSize() method is actually causing the crash..

Original comment by c.blijke...@gmail.com on 3 Feb 2011 at 1:53