Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21101

Printing articles including link: content cut off on the right side

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 13.10.6, 13.10.10
    • None
    • None
    • Unknown

    Description

      Printing articles with the browser print dialog articles with at least one link exceed the paper width by up to 50 %. The content is extremely cut off on the right side. Also, the font size is much smaller. If I remove the links in the same article, all the text fits on the paper and the font size is as large as expected.

      Personal fix at the moment is this:

      /* FIX: Printing article including link: content cut off on the right */
      /* caused by */
      /* https://wiki.ndr.mobi/wiki/ndr/skin/skins/flamingo/print.min.css */
      /* overrule width: auto!important */
      @media print {
          #body, #xwikimaincontainer, #xwikimaincontainerinner, #xwikicontent, #mainContentArea {
              width: 100%!important;
          }
      } 

      Comments by Lucas C:

      I could find it in the xwiki-platform source, in the module xwiki-platform-skin-resources, in the file print.css.

      This was introduced in this commit in 2009 for the Colibri skin.
      The ticket this commit fixed does not give much information about this specific change.

      I do think it’s a leftover style that might very well be outdated and that we should change it considering the issue you faced. The bug ticket was filled for Colibri with IE, that we both don’t support anymore anyways, so I think it’s pretty safe to make changes on its fix.

      Discussion on forum: https://forum.xwiki.org/t/printing-articles-including-link-content-cut-off-on-the-right-side/12748

      Attachments

        Activity

          People

            Unassigned Unassigned
            Simpel Simpel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: