Results 1 to 2 of 2

Thread: Grid in SimpleContainer that is center of BorderLayoutContainer, cropped scrollbar

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Dec 2011
    Vote Rating

    Default Grid in SimpleContainer that is center of BorderLayoutContainer, cropped scrollbar

    If the GXT Grid is placed inside a SimpleContainer that is the center widget of a BorderLayoutContainer, the Grid does resize to the full size of the center of the border layout container, but the scrollbar is cropped. See attached screenshot.Also, a patch file for com.sencha.gxt.explorer.client.grid.GridExample is provided that demonstrates this defect.cropped_scrollbar.jpg
    ### Eclipse Workspace Patch 1.0#P Ext GWTIndex: com.sencha.gxt.examples/src/main/java/com/sencha/gxt/explorer/client/grid/ com.sencha.gxt.examples/src/main/java/com/sencha/gxt/explorer/client/grid/	(revision 2109)+++ com.sencha.gxt.examples/src/main/java/com/sencha/gxt/explorer/client/grid/	(working copy)@@ -29,6 +29,8 @@ import com.sencha.gxt.state.client.GridStateHandler; import com.sencha.gxt.state.client.StateManager; import com.sencha.gxt.widget.core.client.ContentPanel;+import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;+import com.sencha.gxt.widget.core.client.container.SimpleContainer; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer; import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData; import com.sencha.gxt.widget.core.client.form.SimpleComboBox;@@ -133,7 +135,24 @@     // content) that are setup in the change GridCellRenderer     new QuickTip(grid);     -    return cp;+    +//Resizing of Grid doesn't work as expected.    +//    BorderLayoutContainer b = new BorderLayoutContainer();+//    VerticalLayoutContainer v = new VerticalLayoutContainer();+//    ContentPanel panel = new ContentPanel();+//    panel.setHeadingText("HEADER");+//    panel.add(new HTML("first child of view layout container, header resizes as expected."));+//    v.add(panel);+//    v.add(cp);+//    b.add(v);+    +    //Resizing of Grid works as expected, but scrollbar is cropped.    +    BorderLayoutContainer b = new BorderLayoutContainer();+    SimpleContainer sc = new SimpleContainer();+    b.setCenterWidget(sc);+    sc.add(cp);+    +    return b;   }    @Override

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Vote Rating


    You cannot simple replace some inner container and hope that something magically works. The parent containers never resize their childrens. Do do that, you need to set fit to true on the annotation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts