dat.gui/elements/gui-row/gui-row.js
George Michael Brower a6854f4e69 start of comments
2014-08-18 17:56:05 -04:00

29 lines
405 B
JavaScript

/*
[ ] comment hover behavior
*/
Polymer('gui-row', {
comment: null,
commentOpen: false,
ready: function() {
},
openComment: function() {
this.commentOpen = true;
this.$.comment.style.height = this.$.commentInner.offsetHeight + 'px';
},
closeComment: function() {
this.commentOpen = false;
this.$.comment.style.height = '';
}
});