Adjust the scroll position when the gemini panel is resized
Make sure we restore the scroll state of the message panel when it is resized
This commit is contained in:
parent
8a4a810d1f
commit
61cd66304e
2 changed files with 3 additions and 2 deletions
|
@ -470,7 +470,8 @@ module.exports = React.createClass({
|
|||
// TODO: the classnames on the div and ol could do with being updated to
|
||||
// reflect the fact that we don't necessarily contain a list of messages.
|
||||
// it's not obvious why we have a separate div and ol anyway.
|
||||
return (<GeminiScrollbar autoshow={true} ref="geminiPanel" onScroll={ this.onScroll }
|
||||
return (<GeminiScrollbar autoshow={true} ref="geminiPanel"
|
||||
onScroll={this.onScroll} onResize={this.checkScroll}
|
||||
className={this.props.className} style={this.props.style}>
|
||||
<div className="mx_RoomView_messageListWrapper">
|
||||
<ol ref="itemlist" className="mx_RoomView_MessageList" aria-live="polite">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue