diff options
| author | Zufu Liu <unknown> | 2021-12-16 12:49:10 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2021-12-16 12:49:10 +1100 |
| commit | 5641f6ad8f8d319562f2a3c10fbd251ad2e300ef (patch) | |
| tree | 99bce8517a4968b8f8c1a37d1725635a336d4c8a | |
| parent | 89bad0a356d4445a0946ad56e2803b39c419fa51 (diff) | |
| download | scintilla-mirror-5641f6ad8f8d319562f2a3c10fbd251ad2e300ef.tar.gz | |
Feature [feature-requests:#1422] Fix scrollbar with annotations and wrapping.
| -rw-r--r-- | doc/ScintillaHistory.html | 5 | ||||
| -rw-r--r-- | src/Editor.cxx | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index a77acf033..d6de74ec1 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -582,6 +582,11 @@ <li> Fix potential issue with length of buffer for string returning APIs in ScintillaEdit on Qt. </li> + <li> + Fix inaccurate scroll bar when there are annotations and wrapping of inserted or deleted text changes + number of screen lines. + <a href="https://sourceforge.net/p/scintilla/feature-requests/1422/">Feature #1422</a>. + </li> </ul> <h3> <a href="https://www.scintilla.org/scintilla515.zip">Release 5.1.5</a> diff --git a/src/Editor.cxx b/src/Editor.cxx index a47c9ce0d..a4d60019f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5290,6 +5290,8 @@ void Editor::SetAnnotationHeights(Sci::Line start, Sci::Line end) { changedHeight = true; } if (changedHeight) { + SetScrollBars(); + SetVerticalScrollPos(); Redraw(); } } |
