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) {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue