Results 1 to 1 of 1

Thread: [1.2.1] Incorrent Grid column sizing in IE

  1. #1

    Default [1.2.1] Incorrent Grid column sizing in IE

    GWT 1.5.3
    problem affected in ExtGWT 1.2 and 1.2.1

    Different Grid behavior in BorderLayout container with column auto sizing in IE (incorrect, I guess), Firefox and Chrome (both good). Doctype in HTML set as <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    Sample code with problem:

    Code:
    public class MainPanel extends LayoutContainer {
    
        @Override
        protected void onRender(Element parent, int index) {
            super.onRender(parent, index);
            
            setLayout(new BorderLayout());
            
            BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
            
            BorderLayoutData eastData = new BorderLayoutData(LayoutRegion.EAST, 300);
            
            RpcProxy<BaseListLoadConfig, List<PhoneSummary>> proxy = new RpcProxy<BaseListLoadConfig, List<PhoneSummary>>() {
    
                @Override
                protected void load(BaseListLoadConfig loadConfig,
                        AsyncCallback<List<PhoneSummary>> callback) {
                    SimpleService.Util.getInstance().getData(callback);
                }
                
            };
            
            ListLoader<ListLoadConfig> loader = new BaseListLoader(proxy);
            final ListStore<PhoneSummary> store = new ListStore<PhoneSummary>(loader);
            
            List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
            columns.add(new ColumnConfig("holder", "Client", 300));
            columns.add(new ColumnConfig("phone", "Phone", 150));
            columns.add(new ColumnConfig("blockState", "State", 150));
            ColumnConfig cc = new ColumnConfig("balance", "Balance", 100);
            cc.setNumberFormat(NumberFormat.getFormat("0.00"));
            columns.add(cc);
            
            ColumnModel cm = new ColumnModel(columns);
            
            final Grid<PhoneSummary> grid = new Grid<PhoneSummary>(store, cm);
                    
            final ContentPanel mcp = new ContentPanel();
            mcp.setHeaderVisible(false);
            grid.setAutoHeight(true);
            grid.setAutoWidth(true);
            grid.setAutoExpandColumn("holder");
            grid.setAutoExpandMax(2000);
    
            mcp.setMonitorWindowResize(true);
            mcp.add(grid);
            add(mcp, centerData);
            
            ContentPanel detail = new ContentPanel();
            detail.setHeading("Verbose information");
            final DetailPanel dp = new DetailPanel(); 
            detail.add(dp);
            add(detail, eastData);
            
            loader.load();
        }
    Stanalone project code and screenshots attached.
    Attached Images Attached Images
    Attached Files Attached Files

Posting Permissions

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