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

Frozen scroll position is incorrect after redrawing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.1
    • 9.5.0.2
    • Components
    • Security Level: Jimmy

      Steps to Reproduce

      https://zkfiddle.org/sample/3skcjsa/1-frozen-scroll

      Scroll right untill items 10, 11, 12 are in view

      Click in the header's textboxes a few times

      Current Result

      scrollbar is set to the left position, while view is still on the right side (items 10, 11, 12)

      Expected Result

      scrollbar position and view position should stay in sync

      Debug Information

       

      Workaround

      <script><![CDATA[
      	zk.afterLoad("zul.sel", function () {
      	    var _xListbox = {};
      	    zk.override(zul.sel.Listbox.prototype, _xListbox, {
      	        _doSyncScroll: function() {
      				var self = this;
      	    		var result = _xListbox._doSyncScroll.apply(this, arguments);
      				setTimeout(function(){
      					self.frozen.syncScrollByParentBody();
      				},0);
      				return result;
      	        }
      	     });
      	});
      	]]></script>
      

            Leon03 Leon03
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 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