mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-22 16:23:09 +02:00
fix viewport x-axis calculation
This commit is contained in:
@@ -219,7 +219,7 @@ public class GraphFragment extends Fragment implements FragmentUpdateListener {
|
||||
maxValue += 20;
|
||||
}
|
||||
|
||||
Viewport v = new Viewport(0, (int)maxValue, maxDays, 0);
|
||||
Viewport v = new Viewport(0, (int)maxValue, maxDays-1, 0);
|
||||
chartTop.setMaximumViewport(v);
|
||||
chartTop.setCurrentViewport(v, true);
|
||||
|
||||
|
Reference in New Issue
Block a user