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

dynamically rerendered row breaking hflex min column

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.3
    • 9.6.2
    • Components
    • Security Level: Jimmy
    • None

      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>
            ...
      

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

              Created:
              Updated:
              Resolved: