apply FilePanel css and fix filtering

This commit is contained in:
Matthew Hodgson 2016-09-07 02:16:29 +01:00
parent c2f2fb3816
commit e7074ef9af
4 changed files with 13 additions and 3 deletions

View file

@ -73,6 +73,9 @@ module.exports = React.createClass({
// opacity for dynamic UI fading effects
opacity: React.PropTypes.number,
// className for the panel
className: React.PropTypes.string.isRequired,
},
componentWillMount: function() {
@ -503,7 +506,7 @@ module.exports = React.createClass({
style.opacity = this.props.opacity;
return (
<ScrollPanel ref="scrollPanel" className="mx_RoomView_messagePanel mx_fadable"
<ScrollPanel ref="scrollPanel" className={ this.props.className + " mx_fadable" }
onScroll={ this.props.onScroll }
onResize={ this.onResize }
onFillRequest={ this.props.onFillRequest }