From 06a761830372c2bdabfab5654f85ba0d0a541aa5 Mon Sep 17 00:00:00 2001 From: Ole Zorn Date: Mon, 26 Sep 2011 16:45:13 +0200 Subject: [PATCH] Fixes minor scrolling issue with graph view in landscape mode on iPad --- Classes/GraphView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/GraphView.m b/Classes/GraphView.m index bcef94a7..4050cd76 100644 --- a/Classes/GraphView.m +++ b/Classes/GraphView.m @@ -261,7 +261,7 @@ - (NSRange)visibleBarRange NSUInteger numberOfBars = [self.dataSource numberOfBarsInGraphView:self]; barsPerPage = scrollView.bounds.size.width / barWidth; int firstVisibleBarIndex = MIN(numberOfBars, MAX(0, scrollView.contentOffset.x / barWidth)); - NSRange newVisibleRange = NSMakeRange(firstVisibleBarIndex, barsPerPage + 1); + NSRange newVisibleRange = NSMakeRange(firstVisibleBarIndex, barsPerPage + 2); if (newVisibleRange.location + newVisibleRange.length >= numberOfBars) { newVisibleRange.length = numberOfBars - newVisibleRange.location; }