mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 17:25:50 +03:00
clear min-height on timeline resets and other occasions where we load it
This commit is contained in:
parent
32f055bec2
commit
8bb8ec141e
2 changed files with 12 additions and 0 deletions
|
@ -658,6 +658,13 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clearTimelineHeight: function() {
|
||||||
|
const scrollPanel = this.refs.scrollPanel;
|
||||||
|
if (scrollPanel) {
|
||||||
|
scrollPanel.clearBlockShrinking();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
onResize: function() {
|
onResize: function() {
|
||||||
dis.dispatch({ action: 'timeline_resize' }, true);
|
dis.dispatch({ action: 'timeline_resize' }, true);
|
||||||
},
|
},
|
||||||
|
|
|
@ -935,6 +935,11 @@ var TimelinePanel = React.createClass({
|
||||||
{windowLimit: this.props.timelineCap});
|
{windowLimit: this.props.timelineCap});
|
||||||
|
|
||||||
const onLoaded = () => {
|
const onLoaded = () => {
|
||||||
|
// clear the timeline min-height when
|
||||||
|
// (re)loading the timeline
|
||||||
|
if (this.refs.messagePanel) {
|
||||||
|
this.refs.messagePanel.clearTimelineHeight();
|
||||||
|
}
|
||||||
this._reloadEvents();
|
this._reloadEvents();
|
||||||
|
|
||||||
// If we switched away from the room while there were pending
|
// If we switched away from the room while there were pending
|
||||||
|
|
Loading…
Reference in a new issue