Results 1 to 2 of 2

Thread: [FNR] When traling column is made visible, horizontal scrollbar isn't updated

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

    Default [FNR] When traling column is made visible, horizontal scrollbar isn't updated

    GXT 2.2.0. GWT 2.0.4 and 2.1.0. Reproducible in dev mode aka "hosted" mode as well as compiled app. Reproducible in Chrome, IE, and FireFox.

    To reproduce, run the example below making sure that the grid is wider than your browser window. The horizontal scrollbar should be visible. Then, show the hidden "J" column (last column) using the column menu. You cannot scroll to the right to display the "J" column. If you expand the window enough the J column becomes visible.

    As a workaround, I'm looking at overriding GridView's updateColumnHidden(int, boolean) method to get a reference to get the scroller to update itself. I'm pretty early in the process so I'm not 100% sure that's the best solution.

    import com.extjs.gxt.ui.client.Style;
    import com.extjs.gxt.ui.client.util.Margins;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.Viewport;
    import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
    import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
    import com.extjs.gxt.ui.client.widget.grid.Grid;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
    import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import java.util.ArrayList;
    import java.util.List;
    public class ReproduceColumnHiddenBugContainer extends LayoutContainer implements EntryPoint {
        public ReproduceColumnHiddenBugContainer() {
            super(new BorderLayout());
            BorderLayoutData centerData = new BorderLayoutData(Style.LayoutRegion.CENTER);
            centerData.setMargins(new Margins(0));
            add(new Grid<ModelData>(new ListStore<ModelData>(), new ColumnModel(createColumns())), centerData);
        private List<ColumnConfig> createColumns() {
            List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
            for (char c = 'A'; c < 'K'; c++) {
                columns.add(new ColumnConfig(Character.toString(c), Character.toString(c), 100));
            columns.get(columns.size() - 1).setHidden(true);
            return columns;
        public void onModuleLoad() {
            Viewport viewport = new Viewport();
            viewport.setLayout(new FitLayout());

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007


    Fixed in SVN as of revision 2307

Similar Threads

  1. [FNR] Grid horizontal scrollbar not working properly
    By pankajdang in forum Ext GWT: Bugs (2.x)
    Replies: 6
    Last Post: 14 Sep 2010, 12:22 PM
  2. [FNR] Grid visible column selection
    By Julien Eluard in forum Ext GWT: Bugs (2.x)
    Replies: 3
    Last Post: 27 Apr 2010, 1:34 AM
  3. Replies: 1
    Last Post: 15 Mar 2010, 5:06 AM
  4. [FNR] [1.1] Column Header in Grid doesn't updated dynamically
    By dardison in forum Ext GWT: Bugs (1.x)
    Replies: 6
    Last Post: 22 Oct 2008, 12:16 PM
  5. Horizontal ScrollBar half visible in Grid
    By thomson in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 25 Aug 2008, 8:17 PM

Posting Permissions

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