GBonnaire / jspreadsheet-plugins-and-editors

Plugins and Editors for JSpreadsheet Pro 7, Pro 8 and Pro 9
https://repo.gbonnaire.fr/category/jspreadsheetpro
MIT License
13 stars 0 forks source link

Print Formatting and Layout Issue when printing all worksheets #36

Closed stephen-taylor-dev closed 1 year ago

stephen-taylor-dev commented 1 year ago

Plugin Name with version

Print Version 2.1.0

JSpreadsheet version

v9.x

Describe the bug

When printing out all worksheets in a spreadsheet, there seems to be a print formatting and layout bug when printing worksheet tabs that have not been clicked on prior to printing. Every tab you click on and view before printing is formatted correctly when printed. The issue seems to only come up on tabs that have not been clicked on prior to printing.

This screenshot shows how it is formatted and structured in Jspreadsheet.

Screenshot 2023-08-08 at 2 17 16 PM

This shows how the print plugin displays the layout and formatting.

Screenshot 2023-08-08 at 2 17 02 PM

Reproduction steps

1.
2.
3.
...
GBonnaire commented 1 year ago

Hi,

Can you share configuration of worksheets, i don't reproduct on my version this bug

stephen-taylor-dev commented 1 year ago

Ok, I just discovered I can only replicate it when I render the Jspreadsheet content into an element set to "display: none;". When I then set it to "display: block;", open the spreadsheet with "spreadsheet[0].openWorksheet()" and click print, it displays like the second picture from above. Otherwise it works as expected.

GBonnaire commented 1 year ago

Can you tell me, what is element is set to display: none ? columns ?

If i can reproduct, maybe i can understand why and maybe fix 😊

GBonnaire commented 1 year ago

Close for inactivity