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

Table or colums in table disrupts the layout in outer table. #2189

Closed
lech206 opened this issue Feb 15, 2021 · 2 comments
Closed

Table or colums in table disrupts the layout in outer table. #2189

lech206 opened this issue Feb 15, 2021 · 2 comments

Comments

@lech206
Copy link

lech206 commented Feb 15, 2021

Why layout in second and third table is disrupt?

var dd = {
	content: [
      {
        table: {
          widths: ['50%', '50%'],
          body: [
            [
              {rowSpan: 4,
                stack: [
                  'text1',
                ],
              },
              'text2'
            ],
            ['', 'text3'],
            ['', 'text4'],
            ['', 'text5'],
            ['', 'text6']
          ],
        },
      },
      '-',
      {
        table: {
          widths: ['50%', '50%'],
          body: [
            [
              {rowSpan: 4,
                  table:{body:[['tcol1','tcol2']]}
              },
              'text2'
            ],
            ['', 'text3'],
            ['', 'text4'],
            ['', 'text5'],
            ['', 'text6']
          ],
        },
      },
      '-',
      {
        table: {
          widths: ['50%', '50%'],
          body: [
            [
              {rowSpan: 4,
                  columns:['col1','col2']
              },
              'text2'
            ],
            ['', 'text3'],
            ['', 'text4'],
            ['', 'text5'],
            ['', 'text6']
          ],
        },
      },
    ]
}

image

@mjomble
Copy link
Contributor

mjomble commented Oct 2, 2022

The same issue was reported in #2069 with a simpler example

@liborm85
Copy link
Collaborator

liborm85 commented Aug 9, 2024

Fixed by PR #2764.
Released in version 0.2.11.

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

3 participants