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

paginate-dom: Flex layout child elements misalignment #6

Open
KID-joker opened this issue Jul 4, 2024 · 0 comments
Open

paginate-dom: Flex layout child elements misalignment #6

KID-joker opened this issue Jul 4, 2024 · 0 comments

Comments

@KID-joker
Copy link

Describe the bug

In a flex layout, the height of the i-th element does not reach the bottom, but the height of the next element exceeds it, causing only the (i+1)-th element to move to the next page.

Expect

Looking forward to treating flex layout with flex-direction: row as a whole and moving all child elements downward.

Code example

<div style="display: flex">
    <div style="width: 100px">
        <p style="background-color: red">1</p>
        <p style="background-color: red">3</p>
    </div>
    <div style="width: 100px">
        <p style="background-color: blue">2</p>
        <p style="background-color: blue">4</p>
    </div>
</div>

image

If you agree with my idea, I can provide a PR.

KID-joker added a commit to KID-joker/markdown-print-tools that referenced this issue Jul 6, 2024
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