Merge pull request #3820 from longup/master
Fix last entry clipping bug #3819
This commit is contained in:
commit
640208c8ff
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ public class XAxisRenderer extends AxisRenderer {
|
|||
if (mXAxis.isAvoidFirstLastClippingEnabled()) {
|
||||
|
||||
// avoid clipping of the last
|
||||
if (i == mXAxis.mEntryCount - 1 && mXAxis.mEntryCount > 1) {
|
||||
if (i / 2 == mXAxis.mEntryCount - 1 && mXAxis.mEntryCount > 1) {
|
||||
float width = Utils.calcTextWidth(mAxisLabelPaint, label);
|
||||
|
||||
if (width > mViewPortHandler.offsetRight() * 2
|
||||
|
|
Loading…
Add table
Reference in a new issue