Skip to content

Commit

Permalink
Updated x and y coordinate on table for overflow items
Browse files Browse the repository at this point in the history
  • Loading branch information
sguan-actuate committed Jul 3, 2014
1 parent 5a700f7 commit 65b72fe
Showing 1 changed file with 16 additions and 8 deletions.
Expand Up @@ -72,6 +72,7 @@ protected void drawTable( TableArea table )

currentX += getX( table );
currentY += getY( table );
updateRenderXY( );
parseTableExtraSpanRows( table );

startTable( table );
Expand All @@ -82,13 +83,14 @@ protected void drawTable( TableArea table )
{
// end clip...
}
updateRenderXY( );

if ( table.needClip( ) )
{
graphics.endClip( );
}
currentX -= getX( table );
currentY -= getY( table );
updateRenderXY( );
endTable( );
}

Expand All @@ -107,7 +109,13 @@ private void iterateOnRows( IContainerArea table )
}
else
{// TableGroupArea:
currentX += getX( table );
currentY += getY( table );
updateRenderXY( );
iterateOnRows( (TableGroupArea) child );
currentX -= getX( table );
currentY -= getY( table );
updateRenderXY( );
currentRow = internalRowCount + 1;
}
}
Expand Down Expand Up @@ -275,22 +283,24 @@ protected void drawCell( CellArea cell )

currentX += getX( cell );
currentY += getY( cell );
updateRenderXY( );
startCell( cell );
if( cell.getChildrenCount( ) == 0 )
{//draw emtpy textbox for size of cell to remain, use font size 8
if( emptytextboxwriter == null )
if ( cell.getChildrenCount( ) == 0 )
{// draw emtpy textbox for size of cell to remain, use font size 8
if ( emptytextboxwriter == null )
{
emptytextboxwriter = new TextWriter(render);
emptytextboxwriter = new TextWriter( render );
}
emptytextboxwriter.writeBlankTextBlock( 800 );
}
else
{
visitChildren( cell );
visitChildren( cell );
}
endCell( cell );
currentX -= getX( cell );
currentY -= getY( cell );
updateRenderXY( );
}

/**
Expand Down Expand Up @@ -411,7 +421,6 @@ else if ( rectMerge )

protected void visitChildren( IContainerArea container )
{
updateRenderXY( );
Iterator<IArea> iter = container.getChildren( );
boolean notFirstTextBox = false;
while ( iter.hasNext( ) )
Expand All @@ -435,7 +444,6 @@ protected void visitChildren( IContainerArea container )
}

}
updateRenderXY( );
}

/**
Expand Down

0 comments on commit 65b72fe

Please sign in to comment.