mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Merge pull request #211 from matrix-org/rav/update_scrollpanel_on_topbar
Update the gemini panel when we show/hide the TopUnreadMessagesBar
This commit is contained in:
commit
f985232d29
1 changed files with 4 additions and 1 deletions
|
@ -920,7 +920,10 @@ module.exports = React.createClass({
|
||||||
// screen.
|
// screen.
|
||||||
var showBar = (pos < 0);
|
var showBar = (pos < 0);
|
||||||
|
|
||||||
this.setState({showTopUnreadMessagesBar: showBar});
|
if (this.state.showTopUnreadMessagesBar != showBar) {
|
||||||
|
this.setState({showTopUnreadMessagesBar: showBar},
|
||||||
|
this.onChildResize);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// get the current scroll position of the room, so that it can be
|
// get the current scroll position of the room, so that it can be
|
||||||
|
|
Loading…
Reference in a new issue