AlivePDF icon indicating copy to clipboard operation
AlivePDF copied to clipboard

Patch addGrid() in PDF.as

Open GoogleCodeExporter opened this issue 10 years ago • 1 comments

Correct a problem with page breaking on headerRow. The addGrid function doesn't 
consider the padding on y axis. (y variable)

replace:

if ( checkPageBreak(rect.height) )

by :

if ( checkPageBreak(y+rect.height) )

Original issue reported on code.google.com by [email protected] on 15 Jul 2011 at 3:54

GoogleCodeExporter avatar Oct 22 '15 18:10 GoogleCodeExporter

It's just for the headerRow. lines:

var rect:Rectangle = getRect ( columnNames, currentGrid.headerHeight );
    if ( checkPageBreak(y+rect.height) )
        addPage();


Original comment by [email protected] on 15 Jul 2011 at 3:58

GoogleCodeExporter avatar Oct 22 '15 18:10 GoogleCodeExporter