Merge pull request #215 from matrix-org/rav/fix_scroll_on_resize

Adjust the scroll position when the gemini panel is resized
pull/21833/head
Richard van der Hoff 2016-03-15 09:59:44 +00:00
commit 8ea75277e1
1 changed files with 2 additions and 1 deletions

View File

@ -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">