From f307e4a4aa029961be7aa9ae190688b646b318d8 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Thu, 10 Jan 2019 15:28:04 +1200 Subject: [PATCH] Fixed alignment --- desktop/main.js | 4 ++-- desktop/sources/scripts/dotgrid.js | 2 +- desktop/sources/scripts/renderer.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/main.js b/desktop/main.js index c61e540..f7f348b 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -8,9 +8,9 @@ let isShown = true app.on('ready', () => { app.win = new BrowserWindow({ width: 405, - height: 420, + height: 430, minWidth: 405, - minHeight: 420, + minHeight: 430, webPreferences: { zoomFactor: 1.0 }, backgroundColor: '#000', frame: false, diff --git a/desktop/sources/scripts/dotgrid.js b/desktop/sources/scripts/dotgrid.js index 26521e2..329873b 100644 --- a/desktop/sources/scripts/dotgrid.js +++ b/desktop/sources/scripts/dotgrid.js @@ -76,7 +76,7 @@ function Dotgrid (width, height) { this.new = function () { this.setZoom(1.0) - this.setSize({ width: 300, height: 300 }) + this.setSize({ width: 300, height: 325 }) this.history.push(this.tool.layers) this.clear() } diff --git a/desktop/sources/scripts/renderer.js b/desktop/sources/scripts/renderer.js index 6f8b537..fd0fe0b 100644 --- a/desktop/sources/scripts/renderer.js +++ b/desktop/sources/scripts/renderer.js @@ -100,7 +100,7 @@ function Renderer (dotgrid) { const markers = dotgrid.getSize().markers for (let x = markers.w - 1; x >= 0; x--) { - for (let y = markers.h; y >= 0; y--) { + for (let y = markers.h - 1; y >= 0; y--) { let is_step = x % 4 == 0 && y % 4 == 0 // Color let color = is_step ? dotgrid.theme.active.b_med : dotgrid.theme.active.b_low