From 668dcc4071076e095d2746a6464102a877f7f803 Mon Sep 17 00:00:00 2001 From: Ryan Hileman Date: Sun, 7 Jul 2013 13:33:14 -0700 Subject: [PATCH] allow 1px of leeway in window size --- reslate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reslate.js b/reslate.js index cd10b52..02f2f09 100644 --- a/reslate.js +++ b/reslate.js @@ -707,13 +707,13 @@ _.extend($.window, { var y = Math.min(this.y, s.bottom() - height); this.move({x: x, y: y}); this._super.resize(args); - while (this.rect().height > height) { + while (this.rect().height > height + 1) { args.height -= 1; if (args.height < 0) break; this._super.resize(args); } - while (this.rect().width > width) { + while (this.rect().width > width + 1) { args.width -= 1; if (args.width < 0) break;