Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Exclamation 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
    1. Start running in development mode in Eclipse
    2. Open app in browser
    3. Click the "Click Me" button in the lower right corner.
    4. Press ESC to close.
    5. 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
    Code:
    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);
       }
    }
    Helpful Information

    Screenshot or video
    • N/A

    Live test
    N/A

    Debugging already done
    • None, just found it.

    Possible fix
    Unknown as this point.

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    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.

  3. #3
    Ext GWT Premium Member
    Join Date
    Aug 2010
    Location
    Germany, Solingen
    Posts
    247
    Vote Rating
    3
    gishmo is on a distinguished road

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread