Skip to content

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

@gillsonkell

Description

@gillsonkell

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!"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions