mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 12:49:07 +02:00
Fix orf/olf being undefined
This commit is contained in:
parent
ff94a54891
commit
88fc6ecc5c
@ -362,13 +362,14 @@
|
|||||||
if (this._model.yAlign === 'center') {
|
if (this._model.yAlign === 'center') {
|
||||||
lf = function(x) { return x <= midX; };
|
lf = function(x) { return x <= midX; };
|
||||||
rf = function(x) { return x > midX; };
|
rf = function(x) { return x > midX; };
|
||||||
olf = function(x) { return x + size.width > _this._chart.width; };
|
|
||||||
orf = function(x) { return x - size.width < 0; };
|
|
||||||
yf = function(y) { return y <= midY ? 'top' : 'bottom'; };
|
|
||||||
} else {
|
} else {
|
||||||
lf = function(x) { return x <= (size.width / 2); };
|
lf = function(x) { return x <= (size.width / 2); };
|
||||||
rf = function(x) { return x >= (_this._chart.width - (size.width / 2)); };
|
rf = function(x) { return x >= (_this._chart.width - (size.width / 2)); };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
olf = function(x) { return x + size.width > _this._chart.width; };
|
||||||
|
orf = function(x) { return x - size.width < 0; };
|
||||||
|
yf = function(y) { return y <= midY ? 'top' : 'bottom'; };
|
||||||
|
|
||||||
if (lf(this._model.x)) {
|
if (lf(this._model.x)) {
|
||||||
this._model.xAlign = 'left';
|
this._model.xAlign = 'left';
|
||||||
|
Loading…
Reference in New Issue
Block a user