diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-02-22 10:59:37 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-02-22 10:59:37 +1100 |
commit | a7c1fb0044d621785fef5bc7f6abd577b20e8ff5 (patch) | |
tree | 56f0fbfc1003dc563db17240fee86d62330a3701 | |
parent | 34f456a90007233bb91c5b088f40783d63b32ca9 (diff) | |
download | scintilla-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.mm | 2 |
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 |