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

Frozen scroll position is incorrect after redrawing

    XMLWordPrintable

    Details

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

      Description

      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>
      

        Attachments

          Activity

            People

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