mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #1680 from matrix-org/t3chguy/hide_roomstatusbar
Hide status bar on visible->hidden transition
This commit is contained in:
commit
8c84c3f929
2 changed files with 8 additions and 4 deletions
|
@ -170,8 +170,10 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
// Check whether current size is greater than 0, if yes call props.onVisible
|
// Check whether current size is greater than 0, if yes call props.onVisible
|
||||||
_checkSize: function() {
|
_checkSize: function() {
|
||||||
if (this.props.onVisible && this._getSize()) {
|
if (this._getSize()) {
|
||||||
this.props.onVisible();
|
if (this.props.onVisible) this.props.onVisible();
|
||||||
|
} else {
|
||||||
|
if (this.props.onHidden) this.props.onHidden();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1348,10 +1348,12 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onStatusBarHidden: function() {
|
onStatusBarHidden: function() {
|
||||||
if (this.unmounted) return;
|
// This is currently not desired as it is annoying if it keeps expanding and collapsing
|
||||||
|
// TODO: Find a less annoying way of hiding the status bar
|
||||||
|
/*if (this.unmounted) return;
|
||||||
this.setState({
|
this.setState({
|
||||||
statusBarVisible: false,
|
statusBarVisible: false,
|
||||||
});
|
});*/
|
||||||
},
|
},
|
||||||
|
|
||||||
showSettings: function(show) {
|
showSettings: function(show) {
|
||||||
|
|
Loading…
Reference in a new issue