Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4362

a grid can't fit into a page when printing a page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.0.1
    • 6.5.8.1, 8.6.2
    • None
    • Security Level: Jimmy
    • None
    • ZK 9.0.1 S1

      Steps to Reproduce

      1. load the zul
      2. click the button to open a browser print dialog

      Current Result

      the grid can't fit the page

      Expected Result

      the grid can fit the page

      Debug Information

      • .z-grid-header, .z-grid-body has fixed width and cause this issue.
        <div id="z_2-head" class="z-grid-header" style="display: none; width: 1668px;">
      • since Grid is implemented by <table>, there might be historical reason. Be careful to break the existing features.

      Workaround

      @media print{
          .z-grid-header, .z-grid-body{
              width:auto!important;
          }
      }
      

        1. preview.png
          30 kB
          hawk
        2. print-grid.zul
          1 kB
          hawk

            rudyhuang rudyhuang
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h