Implemented some code to (hopefully) fix the scrollbar issue of the editor. 5_5_x

Sat, 11 Oct 2014 18:47:47 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Oct 2014 18:47:47 +0200
branch
5_5_x
changeset 3860
4ed63a8bf418
parent 3855
e1a218467e3f
child 3862
498ea247eeef

Implemented some code to (hopefully) fix the scrollbar issue of the editor.
(grafted from a128a5940722153110e4cef1f027234bda1334bf)

QScintilla/Editor.py file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Sat Oct 11 11:11:58 2014 +0200
+++ b/QScintilla/Editor.py	Sat Oct 11 18:47:47 2014 +0200
@@ -1943,6 +1943,9 @@
                     index2 = self.breakpointModel.index(index1.row(), 1)
                     self.breakpointModel.setData(index2, line)
                 self.inLinesChanged = False
+        elif mtype & self.SC_MOD_CHANGEANNOTATION:
+            vsb = self.verticalScrollBar()
+            vsb.setMaximum(vsb.maximum() + annotationLinesAdded)
         
     def __restoreBreakpoints(self):
         """

eric ide

mercurial