Skip to content

Instantly share code, notes, and snippets.

@ximus
Created December 31, 2010 02:22
Show Gist options
  • Save ximus/760633 to your computer and use it in GitHub Desktop.
Save ximus/760633 to your computer and use it in GitHub Desktop.
debugging
mouseEntered: function(e) {
// console.log(e);
console.log("ENTER_____"+this.get('layerId')) ;
this.setIfChanged('informativeState', YES);
var parent = this.get('parentView');
var index = parent.contentIndexForLayerId(this.get('layerId'));
console.log("Adding index of "+this.get('layerId'));
console.log(" index is: "+index);
parent.get('customRowHeightIndexes').add(index);
parent.rowHeightDidChangeForIndexes(index);
},
mouseExited: function(e) {
console.log("EXIT_____"+this.get('layerId'));
this.setIfChanged('informativeState', NO);
var parent = this.get('parentView');
if (parent) {
console.log("Removing index of "+this.get('layerId'));
var index = parent.contentIndexForLayerId(this.get('layerId'));
console.log(" index is: "+index);
parent.get('customRowHeightIndexes').remove(index);
parent.rowHeightDidChangeForIndexes(index);
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment