1. #1
    Ext User andrey's Avatar
    Join Date
    May 2008
    Location
    Boston
    Posts
    34
    Vote Rating
    0
    andrey is on a distinguished road

      0  

    Default [FIXED] RC1: Table RowDoubleClick works in GWT shell and IE but not in FF

    [FIXED] RC1: Table RowDoubleClick works in GWT shell and IE but not in FF


    A double click on a table row is not calling the event handler in FireFox 3.0. Here's the test code:
    Code:
    import java.util.ArrayList;
    import java.util.List;
    
    import com.extjs.gxt.ui.client.Events;
    import com.extjs.gxt.ui.client.event.BaseEvent;
    import com.extjs.gxt.ui.client.event.Listener;
    import com.extjs.gxt.ui.client.widget.Info;
    import com.extjs.gxt.ui.client.widget.button.Button;
    import com.extjs.gxt.ui.client.widget.table.Table;
    import com.extjs.gxt.ui.client.widget.table.TableColumn;
    import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
    import com.extjs.gxt.ui.client.widget.table.TableItem;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.core.client.GWT;
    import com.google.gwt.user.client.ui.RootPanel;
    
    public class TestTable implements EntryPoint {
        private Table table;
        
        public void onModuleLoad() {
            List<TableColumn> columns = new ArrayList<TableColumn>();
            TableColumn column = new TableColumn("Col1", 100);
            columns.add(column);
            
            TableColumn column2 = new TableColumn("Col2", 200);
            columns.add(column2);
    
            TableColumnModel cm = new TableColumnModel(columns);
            table = new Table(cm);
            
            table.setSize(300, 400);
            table.addListener(Events.RowDoubleClick, new Listener<BaseEvent>() {
                public void handleEvent(BaseEvent be) {
                    Info.display("Info", "DoubleClick occurred", "");
                    GWT.log("DoubleClick occurred", null);
                }
            });
            
            for(int i = 0; i < 3; ++i) {
                Object[] values = { "c1", "c2" };
                TableItem item = new TableItem(values);
                table.add(item);
            }
            
            RootPanel.get().add(table);
        }
    }
    Thx,
    Andre

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    Fix is in SVN.

Thread Participants: 1