From 8f6381ddf52d2567f354af65928924bf53ab2b61 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 1 Jun 2014 23:54:58 -0500 Subject: [PATCH] fix shrink calculcation in edge cases. --- lib/widget.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index c507ff3..e9d681d 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -2836,7 +2836,8 @@ Element.prototype._getShrinkBox = function(xi, xl, yi, yl, get) { if (!this.screen.autoPadding) { xi -= this.padding.left + this.padding.right; } else { - xi -= this.padding.left; + //xi -= this.padding.left; + xi -= this.ileft; } } else { xl = mxl; @@ -2858,7 +2859,8 @@ Element.prototype._getShrinkBox = function(xi, xl, yi, yl, get) { if (!this.screen.autoPadding) { yi -= this.padding.top + this.padding.bottom; } else { - yi -= this.padding.top; + //yi -= this.padding.top; + yi -= this.itop; } } else { yl = myl;