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: Prevent empty additional pages added when printing #545

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 10, 2023

πŸ“ Summary

Currently an additional page is printed because of the height setting of the body tag,
this is fixed by setting the body height to fit the content.

πŸ–ΌοΈ Screenshots

See page number(s):

🏚️ Before 🏑 After
two pages are printed, one empty only one page is printed

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@susnux susnux added enhancement New feature or request 3. to review labels Feb 10, 2023
@cypress
Copy link

cypress bot commented Feb 10, 2023

1 flaky tests on run #292 β†—οΈŽ

0 50 0 0 Flakiness 1

Details:

fix: Prevent empty additional pages added when printing
Project: Collectives Commit: 21e4215279
Status: Passed Duration: 04:43 πŸ’‘
Started: Feb 13, 2023 10:07 AM Ended: Feb 13, 2023 10:11 AM
FlakinessΒ  cypress/e2e/pages.spec.js β€’ 1 flaky test

View Output Video

Test
Page > Creating a page from template > New page has template content Screenshot

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

CI is currently red for other reasons.

@max-nextcloud
Copy link
Collaborator

I tried to reproduce the initial issue but failed.
Did you observe this only after working on #544 ?

I'm currently working on getting the CI to pass again and then hope to try out the new merge queue feature with the remaining ones.

@susnux
Copy link
Contributor Author

susnux commented Feb 10, 2023

I tried to reproduce the initial issue but failed. Did you observe this only after working on #544 ?

No I observed this already before (and can reproduce this on different NC instances (all NC 25.0.3 or 26 beta 2)

@mejo- mejo- merged commit d6e3631 into main Feb 13, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix/printing-extra-pages branch February 13, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants