Thank you for reporting this bug. We will make it our priority to review this report.
Repeated show/hide on Window causes window to get shorter and shorter
Version(s) of Ext GWT
Browser versions and OS
(and desktop environment, if applicable)
- Chrome 20, OSX, Linux
- Possibly others, I do not have access to Windows
When windows are repeatedly shown/hidden, the vertical height progressively gets smaller with each subsequent hide/show.
Steps to reproduce the problem
- Start running in development mode in Eclipse
- Open app in browser
- Click the "Click Me" button in the lower right corner.
- Press ESC to close.
- Repeat the previous two steps and note that the vertical size of the dialog gets progressively smaller each time.
The window should remain the same size for each subsequent hide/show cycles.
The window progressively gets shorter and shorter.
public class WindowTest implements EntryPoint
public void onModuleLoad()
final Window window = new Window();
FlowLayoutContainer flc = new FlowLayoutContainer();
flc.add(new FieldLabel(new Label("Test Text 1"), "Test Label 1"));
flc.add(new FieldLabel(new Label("Test Text 2"), "Test Label 2"));
flc.add(new FieldLabel(new Label("Test Text 3"), "Test Label 3"));
flc.add(new FieldLabel(new Label("Test Text 4"), "Test Label 4"));
flc.add(new FieldLabel(new Label("Test Text 5"), "Test Label 5"));
flc.add(new FieldLabel(new Label("Test Text 6"), "Test Label 6"));
ContentPanel cp = new ContentPanel();
cp.addButton(new TextButton("Click Me", new SelectEvent.SelectHandler()
public void onSelect(SelectEvent event)
Viewport vp = new Viewport();
Screenshot or video
Debugging already done
Unknown as this point.
I added some debugging in the event handler to print out the sizes of the child elements and the label elements appear to retain their vertical sizes, rather, the outermost DIV element (the peer element to the header DIV) is the one that is getting the incorrect size.
I have not been able to determine if this is a math error in height calculation of this DIV or what.
Ext GWT Premium Member
It's a known issue. The problem was discussed earlier.
Take a look here:
Until the problem is fixed you can set set minimun window height to avoid the problem.