Exemplo n.º 1
0
        /**
         * Calculates the heights of each cell in the row.
         *
         * @return the maximum height of the row.
         */
        virtual protected internal void CalculateHeights()
        {
            maxHeight = 0;
            LOGGER.Info("CalculateHeights");
            for (int k = 0; k < cells.Length; ++k)
            {
                PdfPCell cell   = cells[k];
                float    height = 0;
                if (cell != null)
                {
                    height = cell.HasCalculatedHeight() ? cell.CalculatedHeight : cell.GetMaxHeight();

                    if ((height > maxHeight) && (cell.Rowspan == 1))
                    {
                        maxHeight = height;
                    }
                }
            }
            calculated = true;
        }