Fixed rendering issue in card detail when in compact view
This commit is contained in:
parent
c0d1848628
commit
1bc595306a
@ -33,6 +33,10 @@ Clipperz.PM.UI.Components.Cards.TextAreaClass = React.createClass({
|
||||
this.getDOMNode().addEventListener('input', this.recalculateSize, false);
|
||||
},
|
||||
|
||||
componentDidUpdate: function () {
|
||||
this.recalculateSize();
|
||||
},
|
||||
|
||||
componentWillUnmount: function() {
|
||||
this.getDOMNode().removeEventListener('input', this.recalculateSize, false);
|
||||
},
|
||||
@ -65,7 +69,7 @@ Clipperz.PM.UI.Components.Cards.TextAreaClass = React.createClass({
|
||||
var node = this.getDOMNode();
|
||||
|
||||
node.style.height = 'auto';
|
||||
node.style.height = node.scrollHeight+'px';
|
||||
node.style.height = node.scrollHeight + 'px';
|
||||
window.scrollTo(window.scrollLeft, (node.scrollTop + node.scrollHeight));
|
||||
},
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user