From 8c73ca885482fb41c0a53a64f63aada16df6b83c Mon Sep 17 00:00:00 2001 From: Kohei TAKATA Date: Wed, 21 Jun 2017 22:51:21 +0900 Subject: [PATCH] Fix not to show scroll bar when full screen mode in Windows --- browser/main/Main.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/browser/main/Main.js b/browser/main/Main.js index 43e33d8d..7557d2ae 100644 --- a/browser/main/Main.js +++ b/browser/main/Main.js @@ -160,26 +160,29 @@ class Main extends React.Component { handleFullScreenButton (e) { this.setState({ fullScreen: !this.state.fullScreen }, () => { const noteDetail = document.querySelector('.NoteDetail') + const noteList = document.querySelector('.NoteList') const mainBody = document.querySelector('#main-body') if (this.state.fullScreen) { - this.hideLeftLists(noteDetail, mainBody) + this.hideLeftLists(noteDetail, noteList, mainBody) } else { - this.showLeftLists(noteDetail, mainBody) + this.showLeftLists(noteDetail, noteList, mainBody) } }) } - hideLeftLists (noteDetail, mainBody) { + hideLeftLists (noteDetail, noteList, mainBody) { this.state.noteDetailWidth = noteDetail.style.left this.state.mainBodyWidth = mainBody.style.left noteDetail.style.left = '0px' mainBody.style.left = '0px' + noteList.style.display = 'none' } - showLeftLists (noteDetail, mainBody) { + showLeftLists (noteDetail, noteList, mainBody) { noteDetail.style.left = this.state.noteDetailWidth mainBody.style.left = this.state.mainBodyWidth + noteList.style.display = 'inline' } render () {