Fix sales funnel legend position (Fixes #5073) (#8838)

This commit is contained in:
Faris Ansari 2017-05-16 07:40:26 +05:30 committed by Nabin Hait
parent 769b6bada8
commit 4fcd8a6db3

View File

@ -163,6 +163,10 @@ erpnext.SalesFunnel = Class.extend({
draw_legend: function(x_mid, y_mid, width, height, title) { draw_legend: function(x_mid, y_mid, width, height, title) {
var context = this.elements.context; var context = this.elements.context;
if(y_mid == 0) {
y_mid = 7;
}
// draw line // draw line
context.beginPath(); context.beginPath();
context.moveTo(x_mid, y_mid); context.moveTo(x_mid, y_mid);