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

JS error when detaching frozen component

XMLWordPrintable

    • ZK 8.6.1 S1

      Steps to Reproduce

      run frozen-detach-auxhead.zul
      click either button to detach the frozen component or the whole listbox

      Current Result

      JS error

      Expected Result

      no error

      Debug Info

      happens when one auxheader uses rowspan > 1

      Root Cause

      Workaround

      	/*Patch for ZK-4135*/
      	zk.afterLoad('zul.mesh', function() {
      		var xFrozen = {};
      		zk.override(zul.mesh.Frozen.prototype, xFrozen, {
      			_clearColumnBorders : function() {
      				var mesh = this.parent,
      					lastFrozenCols = this._lastFrozenCols,
      					frozenBorderClz = this.$s('col');
      				if (lastFrozenCols && lastFrozenCols.length != 0) {
      					for (var i = 0; i < lastFrozenCols.length; i++) {
      						var nextCol = lastFrozenCols[i] && lastFrozenCols[i].nextSibling;
      						if (nextCol)
      							jq(nextCol).css('border-left', '');
      					}
      				}
      				jq(mesh.$n()).find('.' + frozenBorderClz).removeClass(frozenBorderClz);
      			}
      		});//zk.override
      	});//zk.afterLoad
      

            CharlesQiu CharlesQiu
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 2 hours, 30 minutes
                2h 30m
                Logged:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 2 hours, 30 minutes
                1h 30m