Make the empty chart slightly less ugly.

This commit is contained in:
Sandor Dornbush
2011-04-21 15:57:59 -07:00
parent 8feb903021
commit 47e23e3463
@@ -728,7 +728,7 @@ public class ChartView extends View {
}
}
float density = getContext().getResources().getDisplayMetrics().density;
// TODO: This should be function of the number of variables displayed.
maxLength = Math.max(maxLength, 1);
leftBorder = (int) (density * (4 + 8 * maxLength));
effectiveWidth = w - leftBorder - RIGHT_BORDER;
bottomBorder = (int) (density * BOTTOM_BORDER);