yyn0210 / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Patch addGrid() in PDF.as #325

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 vaandefa...@gmail.com on 15 Jul 2011 at 3:54

GoogleCodeExporter commented 8 years ago
It's just for the headerRow. lines:

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

Original comment by vaandefa...@gmail.com on 15 Jul 2011 at 3:58