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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 9.0.1
    • Affects Version/s: 6.5.8.1, 8.6.2
    • Component/s: None
    • Security Level: Jimmy
    • None
    • ZK 9.0.1 S1
    • None

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

            Assignee:
            rudyhuang
            Reporter:
            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