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

Incorrect drawing of the nested table #2069

Closed
LBorowyk opened this issue Sep 11, 2020 · 3 comments
Closed

Incorrect drawing of the nested table #2069

LBorowyk opened this issue Sep 11, 2020 · 3 comments

Comments

@LBorowyk
Copy link

LBorowyk commented Sep 11, 2020

I am trying to draw a nested table in merged cells. But the contents of cell 11 are displayed below the contents of cell 00.

var dd = {
    content: [
        {
            table: {
                body:[
                    [
                        {
                            rowSpan: 2,
                            table: {
                                body: [
                                    [
                                        '000', '001'
                                    ]
                                ]
                            }
                        },
                        { text: '01' },

                    ],
                    [
                        { text: '10' },
                        { text: '11' },
                    ],
                ]
            }
        }
    ],
}
@suchislife801

This comment has been minimized.

@mjomble
Copy link
Contributor

mjomble commented Oct 2, 2022

Found and marked some duplicates of this issue. Adding an image for clarity:

image

I may be able to look into fixing this, but no promises 🙂

PS. Another example where the same issue occurs with columns inside a table cell:

var dd = {
    content: {
        table: {
            body: [
                [
                    { rowSpan: 2, columns: ['This is ok'] },
                    'This is ok',
                ],
                ['', 'This should be on the right'],
            ],
        },
    }
}

image

@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

4 participants