You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
small cleanup
This commit is contained in:
@@ -569,7 +569,6 @@ module.exports = React.createClass({
|
|||||||
debuglog("unable to save scroll state: found no children in the viewport");
|
debuglog("unable to save scroll state: found no children in the viewport");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
debuglog("saving anchored scroll state to message", node && node.innerText);
|
debuglog("saving anchored scroll state to message", node && node.innerText);
|
||||||
this.scrollState = {
|
this.scrollState = {
|
||||||
stuckAtBottom: false,
|
stuckAtBottom: false,
|
||||||
@@ -597,7 +596,6 @@ module.exports = React.createClass({
|
|||||||
debuglog("balancing height because messages below viewport grew by "+bottomDiff+"px");
|
debuglog("balancing height because messages below viewport grew by "+bottomDiff+"px");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: also call _updateHeight if not already in progress
|
|
||||||
if (!this._heightUpdateInProgress) {
|
if (!this._heightUpdateInProgress) {
|
||||||
this._heightUpdateInProgress = true;
|
this._heightUpdateInProgress = true;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user