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

dynamically rerendered row breaking hflex min column

    XMLWordPrintable

    Details

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

      Description

      Steps to Reproduce

      run zkfiddle
      https://zkfiddle.org/sample/1urqkpa/1-dynamically-rerendered-row-breaking-hflex-min-column

      click button in sequence
      A) -> B) ->A)

      Current Result

      the first column with hflex-min gets truncated

      Expected Result

      the first column with hflex-min has the same width as when rendered initially (with visible container)

      Debug Information

      it seems rerendering the a row while the whole grid is invisible results in incorrect min width calculation

      Workaround

      zkfiddle contains a commented out workaround to call fireSized on the container and contents whenever it becomes visible

          <div id="container" visible="true">
            <!-- workaround -->
            <attribute w:name="setVisible"><![CDATA[
              function() {
                this.$setVisible.apply(this, arguments);
                if (this.isVisible()) {
                  zUtl.fireSized(this, true);
                }
              }
            ]]></attribute>
            ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jumperchen jumperchen
              Reporter:
              cor3000 cor3000
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: