fix shrink calculcation in edge cases.
This commit is contained in:
parent
bd92e3bf4f
commit
8f6381ddf5
|
@ -2836,7 +2836,8 @@ Element.prototype._getShrinkBox = function(xi, xl, yi, yl, get) {
|
||||||
if (!this.screen.autoPadding) {
|
if (!this.screen.autoPadding) {
|
||||||
xi -= this.padding.left + this.padding.right;
|
xi -= this.padding.left + this.padding.right;
|
||||||
} else {
|
} else {
|
||||||
xi -= this.padding.left;
|
//xi -= this.padding.left;
|
||||||
|
xi -= this.ileft;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
xl = mxl;
|
xl = mxl;
|
||||||
|
@ -2858,7 +2859,8 @@ Element.prototype._getShrinkBox = function(xi, xl, yi, yl, get) {
|
||||||
if (!this.screen.autoPadding) {
|
if (!this.screen.autoPadding) {
|
||||||
yi -= this.padding.top + this.padding.bottom;
|
yi -= this.padding.top + this.padding.bottom;
|
||||||
} else {
|
} else {
|
||||||
yi -= this.padding.top;
|
//yi -= this.padding.top;
|
||||||
|
yi -= this.itop;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
yl = myl;
|
yl = myl;
|
||||||
|
|
Loading…
Reference in New Issue