Browse Source

settings background fix

all-modes
pbca26 7 years ago
parent
commit
415fc90d9a
  1. 16
      react/src/components/dashboard/settings/settings.js

16
react/src/components/dashboard/settings/settings.js

@ -87,6 +87,11 @@ class Settings extends React.Component {
componentWillUnmount() {
socket.removeAllListeners('patch', msg => this.updateSocketsData(msg));
if (!this.state.disableWalletSpecificUI) {
document.documentElement.style.height = '100%';
document.body.style.height = '100%';
}
}
componentDidMount() {
@ -262,6 +267,17 @@ class Settings extends React.Component {
activeTabHeight: _height,
tabElId: elemId,
}));
// body size hack
if (!this.state.disableWalletSpecificUI) {
document.documentElement.style.height = '100%';
document.body.style.height = '100%';
setTimeout(() => {
document.documentElement.style.height = _height <= 200 ? '100%' : 'inherit';
document.body.style.height = _height <= 200 ? '100%' : 'inherit';
}, 100);
}
}, 100);
}

Loading…
Cancel
Save