Title: Problems with nested tables

I have a problem with nested tables.

I have put 2 tables with a different number of columns inside another table.

When i try to set the widths of each column of the tables (method .setWidths)
the table with fewer columns inherits the widths of the table with more columns

For example

            Table dettaglioAttivita = new Table(6,1);
            dettaglioAttivita.setAutoFillEmptyCells(true);
        int[] larghezzaColonneAttivita = {5,10,5,40,20,10};
        dettaglioAttivita.setWidths(larghezzaColonneAttivita);
                       
        Table dettaglioProdotti = new Table(5,1);
            dettaglioProdotti.setAutoFillEmptyCells(true);
        int[] larghezzaColonneProdotti = {10,50,15,20,5};
        dettaglioProdotti.setWidths(larghezzaColonneProdotti);

        Table table = new Table(1,3);
            table.setBorderWidth(1);
            table.setBorderColor(new Color(0, 0, 255));
            Cell cell = new Cell("Header");
            table.addCell(cell);
        table.insertTable(dettaglioAttivita);
        table.addCell(new Cell());
        table.insertTable(dettaglioProdotti);
        cell = new Cell("Footer");
        table.addCell(cell);   
//*********

The table called "dettaglioProdotti" inherits the widths percentage of "dettaglioAttivita" and ignore the command int[] larghezzaColonneProdotti = {10,50,15,20,5};

If i use the method .addCell instead of .insertTable i get the same problem


Can anyone help me ??


Thanks in advice

Daniele




--------------------------------------------------------------------
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to [EMAIL PROTECTED]
        Thank you
                                        www.telecomitalia.it
--------------------------------------------------------------------



Reply via email to