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

Treechildren with frozen onResponse trigger unexpected resize

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 9.0.1
    • None
    • Security Level: Jimmy
    • None
    • ZK 9.5.1 S1

      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>
      

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

              Created:
              Updated:
              Resolved:

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