mirror of https://github.com/vector-im/riot-web
Hide status bar on visible->hidden transition
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
fa14bc9b8d
commit
875eb3d34f
|
@ -169,8 +169,10 @@ module.exports = React.createClass({
|
|||
|
||||
// Check whether current size is greater than 0, if yes call props.onVisible
|
||||
_checkSize: function() {
|
||||
if (this.props.onVisible && this._getSize()) {
|
||||
this.props.onVisible();
|
||||
if (this._getSize()) {
|
||||
if (this.props.onVisible) this.props.onVisible();
|
||||
} else {
|
||||
if (this.props.onHidden) this.props.onHidden();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue