Skip to content

Commit 115935f

Browse files
committed
fix: dont convert extra offset
1 parent 392ae00 commit 115935f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/charting/charts/Chart.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
958958
* Set an extra offset to be appended to the viewport's top
959959
*/
960960
public setExtraTopOffset(offset) {
961-
this.mExtraTopOffset = Utils.convertDpToPixel(offset);
961+
this.mExtraTopOffset = offset;
962962
}
963963

964964
/**
@@ -972,7 +972,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
972972
* Set an extra offset to be appended to the viewport's right
973973
*/
974974
public setExtraRightOffset(offset) {
975-
this.mExtraRightOffset = Utils.convertDpToPixel(offset);
975+
this.mExtraRightOffset = offset;
976976
}
977977

978978
/**
@@ -986,7 +986,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
986986
* Set an extra offset to be appended to the viewport's bottom
987987
*/
988988
public setExtraBottomOffset(offset) {
989-
this.mExtraBottomOffset = Utils.convertDpToPixel(offset);
989+
this.mExtraBottomOffset = offset;
990990
}
991991

992992
/**
@@ -1000,7 +1000,7 @@ export abstract class Chart<U extends Entry, D extends IDataSet<U>, T extends Ch
10001000
* Set an extra offset to be appended to the viewport's left
10011001
*/
10021002
public setExtraLeftOffset(offset) {
1003-
this.mExtraLeftOffset = Utils.convertDpToPixel(offset);
1003+
this.mExtraLeftOffset = offset;
10041004
}
10051005

10061006
/**

0 commit comments

Comments
 (0)