2014-08-16 21:16:02 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
[ ] comment hover behavior
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2014-08-15 16:32:49 +00:00
|
|
|
Polymer('gui-row', {
|
|
|
|
|
2014-08-16 21:16:02 +00:00
|
|
|
comment: null,
|
|
|
|
|
|
|
|
commentOpen: false,
|
|
|
|
|
2014-08-15 16:32:49 +00:00
|
|
|
ready: function() {
|
2014-08-16 21:16:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
openComment: function() {
|
2014-08-18 21:56:05 +00:00
|
|
|
this.commentOpen = true;
|
2014-08-16 21:16:02 +00:00
|
|
|
this.$.comment.style.height = this.$.commentInner.offsetHeight + 'px';
|
|
|
|
},
|
|
|
|
|
|
|
|
closeComment: function() {
|
2014-08-18 21:56:05 +00:00
|
|
|
this.commentOpen = false;
|
2014-08-16 21:16:02 +00:00
|
|
|
this.$.comment.style.height = '';
|
2014-08-15 16:32:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
});
|