fix shrink calculcation in edge cases.

This commit is contained in:
Christopher Jeffrey 2014-06-01 23:54:58 -05:00
parent bd92e3bf4f
commit 8f6381ddf5
1 changed files with 4 additions and 2 deletions

View File

@ -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;