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

Treechildren with frozen onResponse trigger unexpected resize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.0.1
    • Fix Version/s: 9.5.1
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      Steps to Reproduce

      Run fiddle:

      https://zkfiddle.org/sample/19kovsi/5-frozen-tree-issue

      Scroll the tree

      mouse over the orange area

      Current Result

      Tree triggers onSize

      frozen size jumps twice

      Scroll position is reinitialized at the beginning of the current column

      Expected Result

      unrelated onResponse shouldn't cause UI jumps

      Debug Information

      Starting point:

      zul.sel.Treechildren.prototype.onSize called by zul.sel.Treechildren.prototype.onResponse

      Triggers the onSize workflow, including recalculating frozen / scrollPos

      Workaround

      <script><![CDATA[
          zk.afterLoad("zul.sel", function () {
              var _xTreechildren = {};
              zk.override(zul.sel.Treechildren.prototype, _xTreechildren, {
                  onResponse: function() {
                      //before
                      //var result = _xTreechildren.onResponse.apply(this, arguments);
                      //after
                      //return result;
                  }
               });
          });
      ]]></script>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Leon03 Leon03
              Reporter:
              MDuchemin MDuchemin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified