Threaded View

  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    70
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default [CLOSED] Beta 4: Table: issue with resizing TableColumns

    [CLOSED] Beta 4: Table: issue with resizing TableColumns


    There seems to be a problem with resizing columns in the table header: the items do not get resized at all. I have not been able to reproduce this issue with the demos though.
    Please see the attached screenshot: 1st image shows initial state. 2nd image shows resized state. I have resized 2nd header column (moved to the right). All the item columns do not get resized.

    Please see the example code below which produces the this wrong behavior.

    Code:
            ArrayList<TableColumn> columns = new ArrayList<TableColumn>();
            ContentPanel content = new ContentPanel(new FitLayout());
            content.setHeading("Available Models");
            columns.add(new TableColumn("name", "Model", NiceGWT.GOLDEN_PERCENT_RIGHT));
            columns.add(new TableColumn("backend", "Backend", NiceGWT.GOLDEN_PERCENT_LEFT));
            final Table<RowSelectionModel> table = new Table<RowSelectionModel>(new TableColumnModel(columns));
            final RowSelectionModel selectionModel = new RowSelectionModel(Style.SelectionMode.SINGLE);
            table.setSelectionModel(selectionModel);
            table.addListener(Events.SelectionChange, new Listener<TableEvent>() {
                public void handleEvent(TableEvent evt) {
                    showResult((String)selectionModel.getSelectedItem().getValue(0));
                }
            });
            content.add(table);
            PersistBrowserModule.getService().getModels(new AsyncCallback<EntityTypeMetaData[]>() {
                public void onFailure(Throwable caught) {
                    Shell.get().error("Error getting entity models", caught);
                }
                public void onSuccess(EntityTypeMetaData[] result) {
                    metaData = new HashMap<String, EntityTypeMetaData>();
                    for ( EntityTypeMetaData m : result ) {
                        Object[] values = new Object[] {
                                m.getName(), m.getBackend()
                        };
                        TableItem ti = new TableItem(values);
                        table.add(ti);
                        metaData.put(m.getName(), m);
                    }
                }
            });
    Attached Images

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi