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

Fix band() adding extra margin when multiple cells wrap #260

Open
gillsonkell opened this issue Jan 26, 2022 · 0 comments
Open

Fix band() adding extra margin when multiple cells wrap #260

gillsonkell opened this issue Jan 26, 2022 · 0 comments

Comments

@gillsonkell
Copy link

If more than one cell wraps you get somewhere around twice the margin below the band. For example:

new Report('test.pdf')
  .data({})
  .detail(report => {
    report.band([
      {data: '123456789'},
      {data: '123456789'}
    ], {
      wrap: true
    });
    report.print('Hello, world!');
  })
  .render(err => {
    if (err) throw err;
  });

This results in a larger-than-expected gap between the band and the text "Hello, world!"

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

No branches or pull requests

1 participant