HydroSysPotsdam / Forester

Interactive and web-based visualization of decision trees.
GNU General Public License v3.0
4 stars 0 forks source link

UI elements occlude tree when using "Print to PDF" #45

Open rreinecke opened 1 year ago

rreinecke commented 1 year ago

Describe the bug The buttons on the left hand side can overlay the tree when printing to PDF.

To Reproduce Steps to reproduce the behavior:

  1. Open a tree.
  2. Print to PDF (printing in landscape mode can help a bit to reduce this issue)

Expected behavior The current export button opens a new tab that shows only the tree and legend, without the forester header (Documentation, Github etc.) and the buttons. It then automatically triggers the print dialog of the browser.

Screenshots image

Please add the following information:

david-strahl commented 1 year ago

How the page looks in the print depends on the paper size, as the browser re-draws the page. There is only so much that can be done about this, but I think a good workaround for now would be the following:

Default options for printing (don't know whether these can be set)

Bildschirmfoto 2023-03-16 um 15 24 09