-
6 Aug 2012 3:24 PM #1
Repeated show/hide on Window causes window to get shorter and shorter
Repeated show/hide on Window causes window to get shorter and shorter
Required Information
Version(s) of Ext GWT
3.0.0b
Browser versions and OS
(and desktop environment, if applicable)- Chrome 20, OSX, Linux
- Possibly others, I do not have access to Windows
Virtual Machine
No
Description
When windows are repeatedly shown/hidden, the vertical height progressively gets smaller with each subsequent hide/show.
Run mode
both
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.
Expected result
The window should remain the same size for each subsequent hide/show cycles.
Actual result
The window progressively gets shorter and shorter.
Test case
Helpful InformationCode:public class WindowTest implements EntryPoint { @Override public void onModuleLoad() { final Window window = new Window(); window.setHeadingText("Test Window"); window.setDraggable(false); window.setModal(true); window.setOnEsc(true); window.setResizable(false); window.setWidth(500); window.setHeight(200); 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")); window.setWidget(flc); ContentPanel cp = new ContentPanel(); cp.addButton(new TextButton("Click Me", new SelectEvent.SelectHandler() { @Override public void onSelect(SelectEvent event) { window.show(); } })); Viewport vp = new Viewport(); vp.setWidget(cp); RootPanel.get().add(vp); } }
Screenshot or video- N/A
Live test
N/A
Debugging already done- None, just found it.
Possible fix
Unknown as this point.
-
7 Aug 2012 8:05 AM #2
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.
-
7 Aug 2012 10:41 PM #3
It's a known issue. The problem was discussed earlier.
Take a look here:
http://www.sencha.com/forum/showthre...size-when-hide
Until the problem is fixed you can set set minimun window height to avoid the problem.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote