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

JS error when detaching frozen component

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.5.0, 8.6.0
    • Fix Version/s: 8.6.1
    • Component/s: Components
    • Security Level: Jimmy
    • gh.sprint.customfield.default.name:
      ZK 8.6.1 S1

      Description

      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
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                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