Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some addGrid bugs #374

Open
GoogleCodeExporter opened this issue Oct 22, 2015 · 1 comment
Open

Some addGrid bugs #374

GoogleCodeExporter opened this issue Oct 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. add more tables and set setGridPositionOnNextPages 

What is the expected output? What do you see instead?

I'm expecting that tables are drawn starting from nextPageY. Instead they are 
drawn without respecting the defined values.

What version of the product are you using? On what operating system?

Last version available in source.

Please provide any additional information below.

For me the problem is in PDF.as:

- Function: setGridPositionOnNextPages
X and Y values are exchanged, they are:

nextPageX = yvalue;
nextPageY = xvalue;

instead they have to be:

nextPageX = xvalue;
nextPageY = yvalue;

- Function: addGrid

1) These 3 lines have to be deleted because they're producing duplicate table 
headers:

setXY (x +currentGrid.x, y+getY() );
addRow( columnNames,'', rect);
endFill();

2) before the line addRow( columnNames, GridRowType.HEADER, rect ); I suggest 
to change the current setXY with:

var posX:Number = x+getX();
var posY:Number = y+getY();
if (posY < nextPageY) posY = nextPageY;
setXY ( posX, posY );

In this way all the tables start correctly from nextPageY in any case.

I've applyed this modifies to my project and all seems to go right.

Original issue reported on code.google.com by [email protected] on 5 Feb 2015 at 5:05

@GoogleCodeExporter
Copy link
Author

Problem #1 (duplicate headers) fixed in PDF.as

Original comment by [email protected] on 28 Feb 2015 at 12:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants