Skip to content

Commit f728203

Browse files
authored
Merge pull request #149 from Junior125306/patch-1
修复 top/height 相加bug
2 parents 9f288fd + c8df2f6 commit f728203

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hiprint/hiprint.bundle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ var hiprint = function (t) {
564564
}
565565
return d;
566566
}, t.prototype.getLeft = function () {
567-
return this.left;
567+
return this.left - 0;
568568
}, t.prototype.posLeft = function () {
569569
var left = this.left;
570570
if (this.transform) left += this.getRectInfo().diffW;
@@ -579,7 +579,7 @@ var hiprint = function (t) {
579579
}, t.prototype.setLeft = function (t) {
580580
null != t && (this.left = t);
581581
}, t.prototype.getTop = function () {
582-
return this.top;
582+
return this.top - 0;
583583
}, t.prototype.posTop = function () {
584584
var top = this.top;
585585
if (this.transform) top += this.getRectInfo().diffH;
@@ -600,7 +600,7 @@ var hiprint = function (t) {
600600
var i = this.getRectInfo();
601601
return i.h + i.diffH;
602602
}
603-
return this.height;
603+
return this.height - 0;
604604
}, t.prototype.displayHeight = function () {
605605
return this.height + "pt";
606606
}, t.prototype.setHeight = function (t) {
@@ -610,7 +610,7 @@ var hiprint = function (t) {
610610
var i = this.getRectInfo();
611611
return i.w + i.diffW;
612612
}
613-
return this.width;
613+
return this.width - 0;
614614
}, t.prototype.displayWidth = function () {
615615
return this.width + "pt";
616616
}, t.prototype.setWidth = function (t) {

0 commit comments

Comments
 (0)