Skip to content

Commit

Permalink
Reload via display property
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Dec 6, 2018
1 parent db3da91 commit da3665f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ export default class Home extends React.Component {
// For some reason, scrollbars don't update when the className for this.state.platform is set dynamically.
// We're doing everything right, but on Chrome Windows, the scrollbars don't reload if adding className after
// the page already loaded. So this seems to work in manually reloading.
var container = document.getElementById("home");
var content = container.innerHTML;
container.innerHTML= content;
var container = document.getElementById("main-content");
container.style.display = "none";
setTimeout(() => {
container.style.display = "block";
}, 0);
}

render() {
return (
<div id="home" className={"panel static " + this.state.platform}>
<div className="content">
<div id="main-content" className="content">

<div className="panel-section">
<NoteFilesView/>
Expand Down

0 comments on commit da3665f

Please sign in to comment.