1946 self.inLinesChanged = False |
1947 self.inLinesChanged = False |
1947 elif mtype & self.SC_MOD_CHANGEANNOTATION: |
1948 elif mtype & self.SC_MOD_CHANGEANNOTATION: |
1948 vsb = self.verticalScrollBar() |
1949 vsb = self.verticalScrollBar() |
1949 vsbMax = vsb.maximum() |
1950 vsbMax = vsb.maximum() |
1950 vsbValue = vsb.value() |
1951 vsbValue = vsb.value() |
1951 vsb.setMaximum(vsbMax + annotationLinesAdded) |
1952 self.__annotationLines += annotationLinesAdded |
|
1953 vsb.setMaximum(max(self.lines() + self.__annotationLines - |
|
1954 self.linesOnScreen(), 0)) |
1952 if vsbValue == vsbMax: |
1955 if vsbValue == vsbMax: |
1953 vsb.setValue(vsb.maximum()) |
1956 vsb.setValue(vsb.maximum()) |
1954 |
1957 |
1955 def __restoreBreakpoints(self): |
1958 def __restoreBreakpoints(self): |
1956 """ |
1959 """ |