Defect #35669
Updated by Mischa The Evil over 3 years ago
When printing the Issues Report details I get lots of unwanted pages due to the large graphs (graph sizes should additionally be decreased independent of this issue, though [see #35670]) though) that are beneath the table. And the graphs that are actually printed are messed-up due to their size too. I think the best solution currently is to hide the charts when printing, like so: <pre><code class="diff"> diff --git a/app/views/reports/_details.html.erb b/app/views/reports/_details.html.erb index 9b8f3b5e5..701591c74 100644 --- a/app/views/reports/_details.html.erb +++ b/app/views/reports/_details.html.erb @@ -25,10 +25,10 @@ <% end %> </tbody> </table> -<div class="issue-report-graph"> +<div class="issue-report-graph hide-when-print"> <canvas id="issues_by_<%= params[:detail] %>"></canvas> </div> -<div class="issue-report-graph"> +<div class="issue-report-graph hide-when-print"> <canvas id="issues_by_status"></canvas> </div> <%= javascript_tag do %> </code></pre>