aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-02-22 10:59:37 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2014-02-22 10:59:37 +1100
commita7c1fb0044d621785fef5bc7f6abd577b20e8ff5 (patch)
tree56f0fbfc1003dc563db17240fee86d62330a3701
parent34f456a90007233bb91c5b088f40783d63b32ca9 (diff)
downloadscintilla-mirror-a7c1fb0044d621785fef5bc7f6abd577b20e8ff5.tar.gz
Stop adding an extra line to scrollable height as that led to cursor up/down
movement bugs because different parts of the code disagreed on top line.
-rw-r--r--cocoa/ScintillaCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index a10a2381a..1e9d6e973 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -1633,7 +1633,7 @@ bool ScintillaCocoa::SetScrollingSize(void) {
NSScrollView *scrollView = ScrollContainer();
NSClipView *clipView = [ScrollContainer() contentView];
NSRect clipRect = [clipView bounds];
- CGFloat docHeight = (cs.LinesDisplayed()+1) * vs.lineHeight;
+ CGFloat docHeight = cs.LinesDisplayed() * vs.lineHeight;
if (!endAtLastLine)
docHeight += (int([scrollView bounds].size.height / vs.lineHeight)-3) * vs.lineHeight;
// Allow extra space so that last scroll position places whole line at top