Skip to content

Commit

Permalink
allow 1px of leeway in window size
Browse files Browse the repository at this point in the history
  • Loading branch information
lunixbochs committed Jul 7, 2013
1 parent dd5258f commit 668dcc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reslate.js
Expand Up @@ -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;
Expand Down

0 comments on commit 668dcc4

Please sign in to comment.