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

row height in grid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Invalid
    • Affects Version/s: Freshly, 8.5.0
    • Fix Version/s: None
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
    • Environment:

      8.5.0.FL.20170919

      Description

      Steps to Reproduce

      run the attached example grid-rowheight-ZK-3747.zul
      the rendered output of both tables should be equal
      (both grids render the same number of rows, cell with equal content, the difference is: one uses a list model whereas the other uses static children)

      Current Result

      when using a model the cells of the first column are resized incorrectly -> 0.1px

      Expected Result

      same as when not using a ListModel

      Debug Info

      actually all cells are resized to 0.1px, but the other 2 columns have a fixed widths so that it doesn't affect them, only the first column doesn't define a width

      row html when using a list model

      <tr id="lSOF50" class="z-row z-grid-odd">
        <td id="lSOF60-chdextr" style="width: 0.1px" class="z-row-inner">
          <div id="lSOF60-cell" class="z-row-content"><span id="lSOF60" class="z-label">German</span></div>
        </td>
        <td id="lSOF70-chdextr" style="width: 0.1px" class="z-row-inner">
          <div id="lSOF70-cell" class="z-row-content"><span id="lSOF70" class="z-label">Martin</span></div>
        </td>
        <td id="lSOF80-chdextr" style="width: 0.1px" class="z-row-inner">
          <div id="lSOF80-cell" class="z-row-content"><span id="lSOF80" class="z-label">ISO-8859-15</span></div>
        </td>
      </tr>
      

      here the expected row html when not using a list model

      <tr id="lSOFq" class="z-row">
        <td id="lSOFr-chdextr" class="z-row-inner">
          <div id="lSOFr-cell" class="z-row-content"><span id="lSOFr" class="z-label">German</span></div>
        </td>
        <td id="lSOFs-chdextr" class="z-row-inner">
          <div id="lSOFs-cell" class="z-row-content"><span id="lSOFs" class="z-label">Martin</span></div>
        </td>
        <td id="lSOFt-chdextr" class="z-row-inner">
          <div id="lSOFt-cell" class="z-row-content"><span id="lSOFt" class="z-label">ISO-8859-15</span></div>
        </td>
      </tr>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wenninghsu wenninghsu
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: