Results 1 to 4 of 4

Thread: Headers do not align with columns in GridPanel

  1. #1

    Default Headers do not align with columns in GridPanel

    Hi.

    In my application, I have a number of grid panels and the headers do not align with the columns; headers are a bit "wider" than the columns. This happens on Firefox; in Chrome they align just fine. The Ext library version is 3.0.0. I have attached a screenshot. My grid is created by the following code:
    resultGrid = new xg.GridPanel({
    store : resultGridStore,
    cm : new xg.ColumnModel({
    defaults : {
    //width : 120,
    sortable : false,
    menuDisabled: true,
    },
    columns : [
    {
    header : "Question",
    width : 100,
    dataIndex : 'itemId'
    },
    {
    header : "Option 1",
    width : 100,
    dataIndex : 'option1'
    },
    {
    header : "Option 2",
    width : 100,
    dataIndex : 'option2'
    },
    {
    header : "Option 3",
    width : 100,
    dataIndex : 'option3'
    },
    {
    header : "Option 4",
    width : 100,
    dataIndex : 'option4'
    },
    ]
    }),
    columnLines : true,
    width : 820,
    height : 400,
    frame : true,
    title : '',
    iconCls : 'icon-grid'

    });

    Any help is appreciated.

    Thanks,
    Ali.
    Attached Images Attached Images

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Have you got an in-house stylesheet which breaks Ext's styling?

  3. #3
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    And what version of Ext and FF?

  4. #4

    Default

    Yes, that was the problem, thanks for the pointer.
    Ali

Similar Threads

  1. TabPanel - how to align tabs headers to right (top)
    By akshayxyz in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 20 Aug 2010, 1:04 PM
  2. Columns menu out of the columns headers
    By shindom in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 19 Mar 2010, 7:24 AM
  3. headers do not align with columns in GridPanel
    By awitney in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 27 Apr 2009, 2:05 PM
  4. Replies: 6
    Last Post: 4 Nov 2008, 8:20 AM
  5. Table Columns Don't Align in Firefox with GridPanel
    By jbaldwin in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 23 Sep 2008, 6:45 AM

Posting Permissions

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