fix up dynamically loaded svgs, and fix bottomleftmenu
This commit is contained in:
parent
bbf08d99cc
commit
b996022db2
11 changed files with 103 additions and 9 deletions
|
@ -262,11 +262,16 @@ var RoomSubList = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
onSvgLoad: function(event) {
|
||||
dis.dispatch({ action: "svg_onload", svg: event.target });
|
||||
},
|
||||
|
||||
_getHeaderJsx: function() {
|
||||
return (
|
||||
<h2 onClick={ this.onClick } className="mx_RoomSubList_label">
|
||||
{ this.props.collapsed ? '' : this.props.label }
|
||||
<object type="image/svg+xml" className="mx_RoomSubList_chevron mx_Svg"
|
||||
onLoad={ this.onSvgLoad }
|
||||
data={ this.state.hidden ? "img/list-close.svg" : "img/list-open.svg" }
|
||||
width="10" height="10" />
|
||||
</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue