Threaded View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    19
    Vote Rating
    0
    p33t is on a distinguished road

      0  

    Default Window move affects width / size (Chrome)

    Window move affects width / size (Chrome)


    Version(s) of Ext GWT
    Ext GWT 3.0.1

    Browser versions and OS
    Chrome 21.0.1180.89 - Dev Mode
    Chrome 21.0.1180.89

    Linux 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 GNU/Linux

    (Cannot reproduce in: Firefox 15.0, IE 8.0.7601.17514)

    Virtual Machine
    No

    Description
    When a Window is created and then moved down and to the right it experiences an abnormal resize. The window itself is taller and narrower but it's shadow remains the original size. Resizing seems to fix it up.

    Run mode
    Both dev mode and production

    Steps to reproduce the problem
    Create a Window with a single '<p>' paragraph and then move it. See code below.

    Test case
    Code:
        
    public class Entry implements EntryPoint {
            @Override
            public void onModuleLoad() {
                Viewport v = new Viewport();
                v.setWidget(new LaunchPanel());
                RootLayoutPanel.get().add(v);
            }
        }
    
        public class LaunchPanel implements IsWidget {
            private final Widget w;
    
            public LaunchPanel() {
                TextButton b = new TextButton("Open Window");
                b.addClickHandler(new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        Window w = new Window();
                        w.setHeadingHtml("A Window");
                        w.add(new HTMLPanel("<p>Move this window down and to the right.<br/>" +
                                "You should see an abnormal resize with the shadow remaining the original size.<br/>" +
                                "Resizing it fixes it up again.</p>"));
                        w.setMinHeight(10);
                        w.setMinWidth(20);
                        w.setOnEsc(true);
                        w.show();
    
                    }
                });
                w = new SimplePanel(b);
            }
    
            @Override
            public Widget asWidget() {
                return w;
            }
        }
    Attached Images

Thread Participants: 1

Tags for this Thread