diff --git a/src/hiprint/hiprint.bundle.js b/src/hiprint/hiprint.bundle.js index 2c98e2a13273cd852423d3939bf857668365dc90..51735120a0ad9cf76984e3b291202b0beac37479 100644 --- a/src/hiprint/hiprint.bundle.js +++ b/src/hiprint/hiprint.bundle.js @@ -1454,7 +1454,8 @@ var hiprint = function (t) { } }, BasePrintElement.prototype.getBeginPrintTopInPaperByReferenceElement = function (t) { var e = this.options.getTop(); - return this.isHeaderOrFooter() || this.isFixed() ? e : t.referenceElement.isPositionLeftOrRight(e) ? t.referenceElement.printTopInPaper + (e - t.referenceElement.top) : t.referenceElement.bottomInLastPaper + (e - (t.referenceElement.top + t.referenceElement.height)); + var h = this.options.getHeight(); + return this.isHeaderOrFooter() || this.isFixed() ? e : t.referenceElement.isPositionLeftOrRight(e,h) ? t.referenceElement.printTopInPaper + (e - t.referenceElement.top) : t.referenceElement.bottomInLastPaper + (e - (t.referenceElement.top + t.referenceElement.height)); }, BasePrintElement.prototype.css = function (t, e) { var n = this, i = [], @@ -2434,8 +2435,8 @@ var hiprint = function (t) { this.top = t.top, this.left = t.left, this.height = t.height, this.width = t.width, this.bottomInLastPaper = t.bottomInLastPaper, this.beginPrintPaperIndex = t.beginPrintPaperIndex, this.printTopInPaper = t.printTopInPaper, this.endPrintPaperIndex = t.endPrintPaperIndex; } - return t.prototype.isPositionLeftOrRight = function (t) { - return this.top <= t && this.top + this.height > t; + return t.prototype.isPositionLeftOrRight = function (t,h) { + return this.top <= t && this.top + h > t; }, t; }(); }, function (t, e, n) {