relita

an encrypted, decentralized, peer-to-peer social network
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/relita

commit 4909bbd986ccdeba576df6d0fcff4980665c7816
parent 83456fbe105350c94d54ebe4de893567c621f95c
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 10 Apr 2017 15:30:53 +0200

Fix(Menu): Menu CSS absolute -> fixed (for scrolling):

Also add .setMenu(null) after the mainWindow creation, to remove the toolbar but keep the window decorations

Diffstat:
Mcss/menu.css | 2+-
Mmain.js | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/css/menu.css b/css/menu.css @@ -1,5 +1,5 @@ .menu { - position: absolute; + position: fixed; width: 100px; height: 100%; left: 0; diff --git a/main.js b/main.js @@ -52,8 +52,10 @@ function create_window() { mainWindow = new BrowserWindow({ width: 800, height: 600, - title: default_name + title: default_name, + toolbar: false }) + mainWindow.setMenu(null); mainWindow.loadURL(url.format({ pathname: path.join(__dirname, first_connection ? 'register.html' : 'index.html'), protocol: 'file:',