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