1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    50
    Vote Rating
    0
    drenda81 is on a distinguished road

      0  

    Default Broken visualization of Table on IE7

    Broken visualization of Table on IE7


    Hi,
    I've created a table as in the example:

    Code:
     List<TableColumn> columns = new ArrayList<TableColumn>();
            columns.add(new TableColumn("cognome", "Cognome", 150));
            columns.add(new TableColumn("nome", "Nome", 100));
            columns.add(new TableColumn("telefono", "Telefono", 100));
            columns.add(new TableColumn("email", "Email", 100));
            columns.add(new TableColumn("tipoUtente", "Tipo Utente", 100));
    
    
            // create the column model  
            TableColumnModel cm = new TableColumnModel(columns);
    
            Table table = new Table(cm);
            table.setAutoWidth(true);
            table.setHorizontalScroll(false);
            table.setHeight("350px");
    
    
    ContentPanel panel = new ContentPanel();
            panel.setFrame(true);
            panel.setCollapsible(false);
            panel.setAnimCollapse(false);
            panel.setButtonAlign(HorizontalAlignment.CENTER);
            panel.setIconStyle("icon-table");
            panel.setHeading("Lista utenti:");
            panel.setHeaderVisible(true);
            panel.add(table);
            panel.setBottomComponent(toolBar);
            panel.setTopComponent(topBar);
    
    
    
    
     lc = new LayoutContainer();
     FlowLayout layout = new FlowLayout(0);
     lc.setLayout(layout);
    lc.add(panel)
    lc.layout();
    The result in IE7 is a broken view as in the attached image.

    Thanks!
    Attached Images

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    table can't have auto widths - must be fixed width to work

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    50
    Vote Rating
    0
    drenda81 is on a distinguished road

      0  

    Default


    Thanks 4 your replay. I've a question: There is a solution to make the table resize on fly to the size of the contentPanel? Also with the panel.setLayoutOnChange(true); it dont' work.

    if the replay is negative, the autowidth of the table is a feature that is planned in GXT?

    Thanks a lot

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    you would need to call layout on each resize, and this would be VERY, VERY slow.

    I would wait for GXT 1.1 - grids is a new widget that will replace table and is based on ExtJS version of the same name. Has lots new features and supports what you need.

    1.1 is in SVN if you have paid support subscription

Thread Participants: 1