Results 1 to 2 of 2

Thread: [FIXED] [1.1.3] Grid headers/body alignment broken in FF

  1. #1

    Default [FIXED] [1.1.3] Grid headers/body alignment broken in FF

    Cell data is jagged, doesn't line up w/other rows or the header. Scrolling/resizing doesn't help.

    Firefox 3.0.3/Google Chrome 0.3.154.9, GWT 1.5.3, GXT 1.1.3, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    public void onModuleLoad() {
    Viewport v = new Viewport();
    v.setLayout(new FitLayout());
    RootPanel.get().add(v);
    setLayout(new FitLayout());
    setScrollMode(Scroll.AUTO);
    List<ColumnConfig> configs = new ArrayList<ColumnConfig>();

    ColumnConfig fName = new ColumnConfig();
    fName.setId("fname");
    fName.setHeader("First Name");
    fName.setWidth(40);
    configs.add(fName);

    ColumnConfig lName = new ColumnConfig();
    lName.setId("lname");
    lName.setHeader("Last Name");
    lName.setWidth(40);
    configs.add(lName);

    ColumnConfig age = new ColumnConfig();
    age.setId("age");
    age.setHeader("Age");
    age.setWidth(40);
    configs.add(age);

    ColumnConfig sex = new ColumnConfig();
    sex.setId("sex");
    sex.setHeader("Sex");
    sex.setWidth(40);
    configs.add(sex);

    ListStore<ModelData> store = new ListStore<ModelData>();
    store.add(getTestData());

    Grid<ModelData> grid = new Grid<ModelData>(store, new ColumnModel(configs));
    add(grid);
    v.add(this);
    v.layout();
    }

    private List<ModelData> getTestData() {
    List<ModelData> data = new ArrayList<ModelData>();

    Map<String, Object> fred = new HashMap<String, Object>();
    fred.put("fname", "Fred");
    fred.put("lname", "Flintstone");
    fred.put("sex", "Male");
    fred.put("age", "35");
    data.add(new BaseModelData(fred));

    Map<String, Object> wilma = new HashMap<String, Object>();
    wilma.put("fname", "Wilma");
    wilma.put("lname", "Flintstone");
    wilma.put("sex", "Female");
    wilma.put("age", "33");
    data.add(new BaseModelData(wilma));

    Map<String, Object> barney = new HashMap<String, Object>();
    barney.put("fname", "Barney");
    barney.put("lname", "Rubble");
    barney.put("sex", "Male");
    barney.put("age", "34");
    data.add(new BaseModelData(barney));

    Map<String, Object> betty = new HashMap<String, Object>();
    betty.put("fname", "Betty");
    betty.put("lname", "Rubble");
    betty.put("sex", "Female");
    betty.put("age", "32");
    data.add(new BaseModelData(betty));

    return data;
    }
    Last edited by darrellmeyer; 24 Nov 2008 at 7:15 AM. Reason: Happens in chrome as well.

  2. #2
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242

    Default

    Fixed in SVN.

Posting Permissions

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