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

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

    XMLWordPrintable

Details

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

    Description

      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;
          }
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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