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

Multipage vertical exporter throws when export is running in a small window #4867

Open
taauntik opened this issue Jun 29, 2022 · 1 comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer pdf export

Comments

@taauntik
Copy link

taauntik commented Jun 29, 2022

Forum post

Hello

I've found a bug in small windows when exporting.

When changing the size of the window and exporting we can get an error:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'top')
    at MultiPageExporter.buildPage (schedulerpro.module.js:43:12521)
    at MultiPageExporter.pagesExtractor (schedulerpro.module.js:43:15428)
    at pagesExtractor.next (<anonymous>)
    at MultiPageExporter.getPages (schedulerpro.module.js:43:5546)
    at async MultiPageExporter.export (schedulerpro.module.js:43:5268)
    at async PdfExport.export (schedulerpro.module.js:43:34389)

How to reproduce:

Go to the example:
https://bryntum.com/examples/examples-scheduler/milestonelayout/

Set the code to the one in the txt example

Set the viewport to the size in the image below

error_print.png
code_print_bug_example.txt

@taauntik taauntik added bug Something isn't working pdf export forum Issues from forum OEM OEM customer labels Jun 29, 2022
@taauntik taauntik changed the title Bug in export function Multipage vertical exporter throws when export is running in a small window Jun 29, 2022
@bmblb
Copy link

bmblb commented Jul 8, 2022

This issue should be fixed by #4449 which would be merged to the master branch shortly after 5.1.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer pdf export
Projects
None yet
Development

No branches or pull requests

2 participants