Skip to content

Commit

Permalink
nested table implementation and fix for empty column width
Browse files Browse the repository at this point in the history
  • Loading branch information
sguan-actuate committed Jun 26, 2014
1 parent f683673 commit 1a22872
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private void outputTable( TableArea table )
private void outputText( ContainerArea text )
{
if ( editMode )
{
{
int x = currentX + getX( text );
int y = currentY + getY( text );
int width = getWidth( text );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private void writeColumnsWidth( TableArea tablearea )
CellArea ca = ((RowArea) tablearea.getChild( 0 )).getCell( i );
if( ca != null )
{
cellwidth = ca.getWidth( );
cellwidth = ca.getWidth( );
}
}
if( cellwidth > 0 )
Expand Down Expand Up @@ -186,7 +186,7 @@ private void endRow( )
{
writer.closeTag( "a:tr" );
}

protected void drawCell( CellArea cell)
{

Expand Down Expand Up @@ -360,7 +360,7 @@ protected void drawCellBox( CellArea cell )

if ( bgimginfo != null && bgimginfo.getRepeatedMode( ) == BackgroundImageInfo.REPEAT )
{
canvas.setBackgroundImg( canvas.getImageRelationship( bgimginfo ), 0, 0 );
canvas.setBackgroundImg( canvas.getImageRelationship( bgimginfo ), 0, 0);
}
else if ( backgroundcolor != null )
{
Expand Down Expand Up @@ -527,10 +527,12 @@ public int getNumRows()
{
return rows;
}

public int getNumColumns()
{
return columns;
}

public void removeARow()
{
rows--;
Expand Down

0 comments on commit 1a22872

Please sign in to comment.