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

css flex not hiding (non flex) grid column headers

    XMLWordPrintable

    Details

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

      Description

      Steps to Reproduce

      <zk>
          <grid width="600px">
      <!--        <custom-attributes org.zkoss.zul.css.flex="false"/>-->
              <columns menupopup="auto">
                  <column label="Col-1" width="100px" visible="false"/>
                  <column label="Col-2" hflex="1"/>
                  <column label="Col-3" hflex="1"/>
                  <column label="Col-4" hflex="1"/>
                  <column label="Col-5" width="100px"/>
              </columns>
              <rows>
                  <row>
                      <label value="cell-1"/>
                      <label value="cell-2"/>
                      <label value="cell-3"/>
                      <label value="cell-4"/>
                      <label value="cell-5"/>
                  </row>
              </rows>
          </grid>
      </zk>
      

      column is initially hidden (or hidden dynamically e.g. via column header menu)

      Current Result

      cell contents for hidden columns become invisible -> OK
      column headers (non flex with static width) remain visible -> ERROR

      Expected Result

      both headers and cells should hide when setting column visiblitity

      Debug Information

      columns with hflex=1 hide as expected

      Workaround

      disable css-flex, commented out in the example above

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: