Printing a Jira issue with a code snippet in comment and having many rows of code does not print correctly

XMLWordPrintable

    • 1
    • Minor

      Issue Summary

      Printing a Jira issue with a code snippet in the comment section and having many rows of code does not print correctly

      Steps to Reproduce

      1. Create an issue in a Jira Software or Service desk project
      2. Insert a code snippet in the comment
      3. Add a large number of rows(say 50+) in the code snippet. Make sure you have to scroll within a code snippet.
      4. Click the Print option available in the 3 dots on the top right of the page to see the preview of the page.
      5. The code snippet section size does not resize or respond to the data inside. You need to scroll to see the entire code data. Also, the print comes incorrectly.

      Expected Results

      The code snippet section during print should resize as per the data inside.

      Actual Results

      NA

      Workaround

      After clicking the Print option, you can use the Inspect mode in Developer tools and modify the max-height of the table to a higher value. The default value shown is 30.

      div.preformattedContent pre, div.codeContent pre

      { max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; }

       

        1. Screenshot1.png
          Screenshot1.png
          990 kB
        2. Screenshot2.png
          Screenshot2.png
          823 kB
        3. Screenshot3.png
          Screenshot3.png
          483 kB
        4. Screenshot4.png
          Screenshot4.png
          929 kB

              Assignee:
              Unassigned
              Reporter:
              Sajan M (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: