From 355751973eec202002232ad2c2df0b11f8a1eacc Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 5 Oct 2015 17:55:44 -0700 Subject: [PATCH] fix(window-size): Don't set size to decimal numbers --- src/atom.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/atom.coffee b/src/atom.coffee index 91b6bee04..c408324e0 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -593,12 +593,12 @@ class Atom extends Model MAX_WIDTH = 1440 if width > MAX_WIDTH - x = (width - MAX_WIDTH) / 2 + x = Math.floor((width - MAX_WIDTH) / 2) width = MAX_WIDTH MAX_HEIGHT = 900 if height > MAX_HEIGHT - y = (height - MAX_HEIGHT) / 2 + y = Math.floor((height - MAX_HEIGHT) / 2) height = MAX_HEIGHT {x, y, width, height}